9#ifndef CFileSystemWatcher_H
10#define CFileSystemWatcher_H
40 eventModified(false), eventCloseWrite(false),
41 eventDeleted(false), eventMovedTo(false),
42 eventMovedFrom(false), eventCreated(false),
43 eventAccessed(false) {}
74 #ifdef MRPT_OS_WINDOWS
77 void thread_win32_watch();
82 #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...
CFileSystemWatcher(const std::string &path)
Creates the subscription to a specified path.
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
virtual ~CFileSystemWatcher()
Destructor.
A thread-safe template queue for object passing between threads; for a template argument of T,...
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.
This structure contains the information needed to interface the threads API on each platform: