#include <DirectoryWatch.h>
Inheritance diagram for OW32::CDirectoryWatch:
Public Member Functions | |
IMPLEMENT_IO_COMPLETION (CDirectoryWatch) | |
CDirectoryWatch (CDirectoryWatchCallback *callback, CIoCompletionThreadPool &ioCompletionPool, const ci_wstring &directoryName, DWORD changesMask=FILE_NOTIFY_CHANGE_LAST_WRITE|FILE_NOTIFY_CHANGE_FILE_NAME) | |
Constructor creating a new directory watch. | |
virtual | ~CDirectoryWatch () |
D'tor. | |
const ci_wstring & | getDirectory () const |
Return the monitored directory. | |
void | cancel () |
Cancel monitoring. |
It handles IOCP notifications, and automatically posts more change notification requests until the watch is cancelled or watching fails (e.g. due to directory deletion).
Only one callback is allowed, use #CFileWatcher (which builds on this) to allow watches on single files piggy-backed on a single ReadDirectoryChangesW call.
|
Constructor creating a new directory watch.
|