![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Poll-based file change detection (Phase 7). More...
#include <string>#include <ctime>
Include dependency graph for FileWatcher.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | Olympe::FileWatcher |
| Polls a single file for modification-time changes. More... | |
Namespaces | |
| namespace | Olympe |
| < Provides AssetID and INVALID_ASSET_ID | |
Poll-based file change detection (Phase 7).
FileWatcher uses stat() / _stat() to sample a file's modification timestamp. HasChanged() returns true the first time it detects a newer timestamp than the one recorded at Watch() / Reset() time.
No filesystem-watcher OS dependency — pure polling via <sys/stat.h>.
C++14 compliant — no std::optional, structured bindings, std::filesystem.
Definition in file FileWatcher.h.