|
CeresEngine 0.2.0
A game development framework
|
File watcher for the local file system for the Windows platform. More...
#include <CeresEngine/Platform/Win32/Win32FileWatcher.hpp>
Public Member Functions | |
| Win32FileWatcher (Win32FileSystem &fs, ExecutionContext &executionContext, const FileHandle &directory, const FileEvents &events, bool recursive) | |
Creates a new Win32FileWatcher instance. | |
| Win32FileWatcher (Win32FileWatcher &&) noexcept=delete | |
| Win32FileWatcher & | operator= (Win32FileWatcher &&) noexcept=delete |
| ~Win32FileWatcher () final | |
| IFileSystem * | getFileSystem () const final |
| Gets file system that this watcher watches for. | |
| void | start () final |
| Starts the file watching operation. | |
| void | stop () final |
| Stops the file watching operation. | |
Public Member Functions inherited from CeresEngine::IFileWatcher | |
| IFileWatcher () | |
| virtual | ~IFileWatcher () |
Private Types | |
| using | Win32Handle = UPtr< void, decltype(&::CloseHandle)> |
Private Attributes | |
| RC< Win32FileSystem > | mFileSystem |
| File system that created this watcher. | |
| ExecutionContext & | mExecutionContext |
| The execution context in which the file watcher events should be fired from. | |
| FileHandle | mHandle |
| Directory that is watched. | |
| FileEvents | mEvents |
| Watched events. | |
| bool | mRecursive |
| Watch recursively? | |
| Win32Handle | mWin32DirectoryHandle |
| Handle for the directory. | |
| Win32Handle | mWin32Event |
| Event that is triggered for this watcher. | |
| ::OVERLAPPED | mWin32Overlapped |
| Overlapped data (for asynchronous operation) | |
| char | buffer [1024 *sizeof(FILE_NOTIFY_INFORMATION)] |
| Buffer for overlapped data (1024 * sizeof(FILE_NOTIFY_INFORMATION)) | |
Friends | |
| class | Win32FileWatcherService |
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 for the Windows platform.
|
private |
|
explicit |
Creates a new Win32FileWatcher instance.
| fs | The file system that created this watcher. |
|
deletenoexcept |
|
final |
|
finalvirtual |
Gets file system that this watcher watches for.
Implements CeresEngine::IFileWatcher.
|
deletenoexcept |
|
finalvirtual |
Starts the file watching operation.
stop(). Implements CeresEngine::IFileWatcher.
|
finalvirtual |
Stops the file watching operation.
Implements CeresEngine::IFileWatcher.
|
private |
Buffer for overlapped data (1024 * sizeof(FILE_NOTIFY_INFORMATION))
|
private |
Watched events.
|
private |
The execution context in which the file watcher events should be fired from.
|
private |
File system that created this watcher.
|
private |
Directory that is watched.
|
private |
Watch recursively?
|
private |
Handle for the directory.
|
private |
Event that is triggered for this watcher.
|
private |
Overlapped data (for asynchronous operation)