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