siplasplas
A library for C++ reflection and introspection
Fswatch

An Euforia Filesystem Watcher wrapper that uses signals to notify filesystem changes. More...

Classes

class  cpp::FileSystemListener
 File system listener class that notifies filesystem changed through signals. More...
 

Detailed Description

An Euforia Filesystem Watcher wrapper that uses signals to notify filesystem changes.

The efsw API works by instancing an efsw::FileSystemWatcher that wraps OS specific watching mechanisms running on a background thread. The user registers different watches that could look for changes in different directories using the same background watcher. A watch is connected to a efsw::FileWatchListener that is notified whenever an event occurs. Since both watchers and listeners can be shared between multiple whatches, each watch has an associated unique watch ID. That IDs can be used to identify what watch (i.e. what directory) the event comes from.

See cpp::FileSystemListener