Added LinuxFileSystemWatcher
This commit is contained in:
41
Source/Engine/Platform/Linux/LinuxFileSystemWatcher.h
Normal file
41
Source/Engine/Platform/Linux/LinuxFileSystemWatcher.h
Normal file
@@ -0,0 +1,41 @@
|
||||
// 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
|
||||
Reference in New Issue
Block a user