![]() |
Lysa
0.0
Lysa 3D Engine
|
A directory monitor
Classes | |
| struct | Batch |
| struct | Change |
| struct | Options |
Public Types | |
| enum | ChangeKind : uint32 { ADDED = 1, REMOVED = 2, MODIFIED = 4, RENAMED = 8 } |
Public Member Functions | |
| DirectoryWatcher (const std::filesystem::path &root, Options options) | |
| DirectoryWatcher (const VirtualFS &fs, const std::string &uri, Options options) | |
| DirectoryWatcher (const std::string &uri, Options options) | |
| ~DirectoryWatcher () | |
| DirectoryWatcher (const DirectoryWatcher &) = delete | |
| DirectoryWatcher & | operator= (const DirectoryWatcher &) = delete |
| void | setIgnoredPaths (const std::vector< std::string > &lines) |
| std::optional< Batch > | takeChanges () |
| void | start () |
| void | stop () noexcept |
| enum ChangeKind : uint32 |
| DirectoryWatcher | ( | const std::filesystem::path & | root, |
| Options | options | ||
| ) |
Start monitoring a directory
|
inline |
| ~DirectoryWatcher | ( | ) |
|
delete |
|
delete |
| void setIgnoredPaths | ( | const std::vector< std::string > & | lines | ) |
Replace exclusions
| void start | ( | ) |
Starts the worker
|
noexcept |
Wake, join, and release native resources
| std::optional<Batch> takeChanges | ( | ) |