|
CeresEngine 0.2.0
A game development framework
|
Interface for file watcher implementations. More...
#include <CeresEngine/Foundation/IO/FileWatcher.hpp>
Public Member Functions | |
| IFileWatcher () | |
| virtual | ~IFileWatcher () |
| virtual IFileSystem * | getFileSystem () const =0 |
| Gets file system that this watcher watches for. | |
| virtual void | start ()=0 |
| Starts the file watching operation. | |
| virtual void | stop ()=0 |
| Stops the file watching operation. | |
Protected Member Functions | |
| void | onFileEvent (const FileHandle &handle, FileEvent event) |
| Called on file event. | |
Protected Attributes | |
| FileWatcher * | mFileWatcher |
| File watcher that owns the implementation. | |
Friends | |
| class | FileWatcher |
Interface for file watcher implementations.
| CeresEngine::IFileWatcher::IFileWatcher | ( | ) |
|
virtual |
|
pure virtual |
Gets file system that this watcher watches for.
Implemented in CeresEngine::AppleFileWatcher, CeresEngine::LinuxFileWatcher, and CeresEngine::Win32FileWatcher.
|
protected |
Called on file event.
| handle | The file handle that received the event. |
| event | The type of event that has occurred. |
Starts the file watching operation.
stop(). Implemented in CeresEngine::AppleFileWatcher, and CeresEngine::Win32FileWatcher.
Stops the file watching operation.
Implemented in CeresEngine::AppleFileWatcher, and CeresEngine::Win32FileWatcher.
|
friend |
|
protected |
File watcher that owns the implementation.
Can be null if the FileWatcher object has been destroyed.