|
acme
Foundational cross-platform layer of the ca2 framework
|
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. | |
| atom os_file_watcher::add_watch | ( | const string & | directory, |
| file_watch_listener * | watcher, | ||
| bool | bRecursive ) |
Add a directory watch
| file_not_found_exception | Thrown when the requested directory does not exist |