|
CeresEngine 0.2.0
A game development framework
|
File watcher for the local file system on Linux platforms. More...
#include <CeresEngine/Platform/Linux/LinuxFileWatcher.hpp>
Classes | |
| struct | Watcher |
| Watcher entry. More... | |
Public Member Functions | |
| LinuxFileWatcher (LinuxFileSystem &fileSystem) | |
Creates a new LinuxFileWatcher instance. | |
| LinuxFileWatcher (LinuxFileWatcher &&) noexcept=delete | |
| LinuxFileWatcher & | operator= (LinuxFileWatcher &&) noexcept=delete |
| ~LinuxFileWatcher () final | |
| IFileSystem * | getFileSystem () const final |
| Gets file system that this watcher watches for. | |
| void | add (FileHandle &dir, UInt32 events, bool recursive) final |
| void | watch (Int32 timeout) final |
Public Member Functions inherited from CeresEngine::IFileWatcher | |
| IFileWatcher () | |
| virtual | ~IFileWatcher () |
| virtual void | start ()=0 |
| Starts the file watching operation. | |
| virtual void | stop ()=0 |
| Stops the file watching operation. | |
Private Attributes | |
| RC< LinuxFileSystem > | mFileSystem |
| File system that created this watcher. | |
| Int32 | mInotify |
| File handle for the inotify instance. | |
| HashMap< int, Watcher > | mWatchers |
| Map of watch handle -> file handle. | |
Additional Inherited Members | |
Protected Member Functions inherited from CeresEngine::IFileWatcher | |
| void | onFileEvent (const FileHandle &handle, FileEvent event) |
| Called on file event. | |
Protected Attributes inherited from CeresEngine::IFileWatcher | |
| FileWatcher * | mFileWatcher |
| File watcher that owns the implementation. | |
File watcher for the local file system on Linux platforms.
|
explicit |
Creates a new LinuxFileWatcher instance.
| fileSystem | The file system that created this watcher. |
|
deletenoexcept |
|
final |
|
final |
|
finalvirtual |
Gets file system that this watcher watches for.
Implements CeresEngine::IFileWatcher.
|
deletenoexcept |
|
private |
File system that created this watcher.
|
private |
File handle for the inotify instance.
Map of watch handle -> file handle.