![]() |
Lysa
0.0
Lysa 3D Engine
|
Monitors a directory for changes and emits events when its content is modified.
Public Member Functions | |
| DirectoryWatcher (const std::string &uri, const uint32 debounceTimer=100) | |
| DirectoryWatcher (const VirtualFS &fs, const std::string &uri, uint32 debounceTimer=100) | |
| ~DirectoryWatcher () | |
| void | start () |
| void | stop () noexcept |
|
inline |
Creates a DirectoryWatcher and starts it
| uri | The URI of the directory to watch. |
| debounceTimer | The time to wait (in milliseconds) before emitting an event after a change is detected for the same file as the previous detected change. |
Creates a DirectoryWatcher and starts it.
| fs | The virtual file system resolving the URI. |
| uri | The URI of the directory to watch. |
| debounceTimer | The time to wait (in milliseconds) before emitting an event after a change is detected for the same file as the previous detected change. |
| ~DirectoryWatcher | ( | ) |
Stop then estroy a DirectoryWatcher.
| void start | ( | ) |
Starts the background thread to watch the directory.
|
noexcept |
Stops the background thread and releases resources.