Files
FlaxEngine/Source/Engine/Platform/Linux/LinuxFileSystemWatcher.h
2021-08-16 17:35:36 +02:00

42 lines
1.1 KiB
C++

// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
#pragma once
#if PLATFORM_LINUX
#include "Engine/Platform/Base/FileSystemWatcherBase.h"
/// <summary>
/// Linux platform implementation of the file system watching object.
/// </summary>
class FLAXENGINE_API LinuxFileSystemWatcher : public FileSystemWatcherBase
{
public:
/// <summary>
/// Initializes a new instance of the <see cref="LinuxFileSystemWatcher"/> class.
/// </summary>
/// <param name="directory">The directory to watch.</param>
/// <param name="withSubDirs">True if monitor the directory tree rooted at the specified directory or just a given directory.</param>
/// <param name="root">Linux specific root directory watcher file descriptor.</param>
LinuxFileSystemWatcher(const String& directory, bool withSubDirs, int root= -1);
/// <summary>
/// Finalizes an instance of the <see cref="LinuxFileSystemWatcher"/> class.
/// </summary>
~LinuxFileSystemWatcher();
public:
FORCE_INLINE int GetWachedDirectoryDescriptor()
{
return WachedDirectory;
}
private:
int WachedDirectory;
};
#endif