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) std::string path
Complete path of the file/directory that has changed.
void getChanges(TFileSystemChangeList &out_list)
Call this method sometimes to get the list of changes in the watched directory.
std::string m_watchedDirectory
Ended in "/".
std::deque< TFileSystemChange > TFileSystemChangeList
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.
This class subscribes to notifications of file system changes, thus it can be used to efficiently sta...
bool isDir
Whether the event happened to a file or a directory.
virtual ~CFileSystemWatcher()
Destructor.
Each of the changes detected by utils::CFileSystemWatcher.
CFileSystemWatcher(const std::string &path)
Creates the subscription to a specified path.