This class subscribes to notifications of file system changes, thus it can be used to efficiently stay informed about changes in a directory tree.
Definition at line 31 of file CFileSystemWatcher.h.
#include <mrpt/system/CFileSystemWatcher.h>
Classes | |
| struct | TFileSystemChange |
| Each of the changes detected by utils::CFileSystemWatcher. More... | |
Public Types | |
| typedef std::deque< TFileSystemChange > | TFileSystemChangeList |
Public Member Functions | |
| CFileSystemWatcher (const std::string &path) | |
| Creates the subscription to a specified path. More... | |
| virtual | ~CFileSystemWatcher () |
| Destructor. More... | |
| void | getChanges (TFileSystemChangeList &out_list) |
| Call this method sometimes to get the list of changes in the watched directory. More... | |
Private Attributes | |
| std::string | m_watchedDirectory |
| Ended in "/". More... | |
| typedef std::deque<TFileSystemChange> mrpt::system::CFileSystemWatcher::TFileSystemChangeList |
Definition at line 56 of file CFileSystemWatcher.h.
| mrpt::system::CFileSystemWatcher::CFileSystemWatcher | ( | const std::string & | path | ) |
Creates the subscription to a specified path.
| path | The file or directory to watch. |
|
virtual |
Destructor.
| void mrpt::system::CFileSystemWatcher::getChanges | ( | TFileSystemChangeList & | out_list | ) |
Call this method sometimes to get the list of changes in the watched directory.
|
private |
Ended in "/".
Definition at line 73 of file CFileSystemWatcher.h.
| Page generated by Doxygen 1.9.1 for MRPT 1.4.0 SVN: at Fri Sep 3 01:11:30 UTC 2021 |