acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
file_watcher::os_file_watcher Class Reference
Inheritance diagram for file_watcher::os_file_watcher:

Public Types

typedef map_base< atom, atom, watch_struct *, watch_struct * > WatchMap
 type for a map_base from atom to watch_struct pointer

Public Member Functions

atom add_watch (const string &directory, file_watch_listener *watcher, bool bRecursive)
void erase_watch (const string &directory)
 Remove a directory watch. This is a brute force lazy search O(nlogn).
void erase_watch (atom watchid)
 Remove a directory watch. This is a map_base find O(logn).
string watch_path (atom watchid)
void update ()
 Updates the watcher. Must be called often.
void handle_action (::file_watcher::file_watcher_impl::action *ptopic)
 Handles the action.

Member Function Documentation

◆ add_watch()

atom os_file_watcher::add_watch ( const string & directory,
file_watch_listener * watcher,
bool bRecursive )

Add a directory watch

Exceptions
file_not_found_exceptionThrown when the requested directory does not exist

The documentation for this class was generated from the following files: