|
Mountain
1.0.0
Simple C++ 2D Game Framework
|
Collaboration diagram for Mountain::FileSystemWatcher:Public Member Functions | |
| MOUNTAIN_API | FileSystemWatcher (const std::string &path) |
| MOUNTAIN_API void | Start () |
| MOUNTAIN_API void | Stop () |
| MOUNTAIN_API void | Update () |
| Forces the watcher thread wake up and update now. | |
| MOUNTAIN_API std::filesystem::path | GetPath () const |
| MOUNTAIN_API void | SetPath (const std::filesystem::path &newPath) |
| MOUNTAIN_API bool_t | GetRunning () const |
Public Attributes | |
| Event< const std::filesystem::path & > | onModified |
| Event< const std::filesystem::path & > | onCreated |
| Event< const std::filesystem::path & > | onDeleted |
| Event< const std::filesystem::path &, const std::filesystem::path & > | onRenamed |
| std::chrono::milliseconds | updateRate {750} |
| Time between each update. | |
| bool_t | checkContents = true |
| Whether to check the directory contents. Doesn't do anything if the watched path points to a file. | |
| bool_t | recursive = false |
Whether to check subdirectories. Doesn't do anything if the watched path points to a file or if checkContents is false. | |
| List< std::string > | fileExtensions |
| File extensions including the dot '.'. | |
| FswNotifyFilters | notifyFilters = FswNotifyFilters::Default |
Definition at line 34 of file file_system_watcher.hpp.