Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Classes | Namespaces
FileWatcher.h File Reference

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
 

Detailed Description

Poll-based file change detection (Phase 7).

Author
Olympe Engine
Date
2026-03-10

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.