9 #ifndef CFileSystemWatcher_H
10 #define CFileSystemWatcher_H
83 #ifdef MRPT_OS_WINDOWS
85 std::thread m_watchThread;
87 void thread_win32_watch();
92 #if defined(MRPT_OS_LINUX) || defined(MRPT_OS_APPLE)
This class subscribes to notifications of file system changes, thus it can be used to efficiently sta...
virtual ~CFileSystemWatcher()
Destructor.
CFileSystemWatcher(const std::string &path)
Creates the subscription to a specified path.
std::string m_watchedDirectory
Ended in "/".
std::deque< TFileSystemChange > TFileSystemChangeList
void getChanges(TFileSystemChangeList &out_list)
Call this method sometimes to get the list of changes in the watched directory.
A thread-safe template queue for object passing between threads; for a template argument of T,...
GLsizei const GLchar ** string
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Each of the changes detected by utils::CFileSystemWatcher.
bool isDir
Whether the event happened to a file or a directory.
std::string path
Complete path of the file/directory that has changed.