Go to the documentation of this file.
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)
Each of the changes detected by utils::CFileSystemWatcher.
std::string m_watchedDirectory
Ended in "/".
void getChanges(TFileSystemChangeList &out_list)
Call this method sometimes to get the list of changes in the watched directory.
bool isDir
Whether the event happened to a file or a directory.
virtual ~CFileSystemWatcher()
Destructor.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
A thread-safe template queue for object passing between threads; for a template argument of T,...
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.
This structure contains the information needed to interface the threads API on each platform:
std::deque< TFileSystemChange > TFileSystemChangeList
std::string path
Complete path of the file/directory that has changed.
Page generated by Doxygen 1.8.20 for MRPT 1.4.0 SVN: at Thu Aug 27 02:40:23 UTC 2020 | | |