This class subscribes to notifications of file system changes, thus it can be used to efficiently stay informed about changes in a directory tree.
#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. | |
| virtual | ~CFileSystemWatcher () |
| Destructor. | |
| void | getChanges (TFileSystemChangeList &out_list) |
| Call this method sometimes to get the list of changes in the watched directory. | |
Private Attributes | |
| std::string | m_watchedDirectory |
| Ended in "/". | |
Definition at line 75 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 mrpt::system::CFileSystemWatcher::~CFileSystemWatcher | ( | ) | [virtual] |
Destructor.
| void mrpt::system::CFileSystemWatcher::getChanges | ( | TFileSystemChangeList & | out_list | ) |
Call this method sometimes to get the list of changes in the watched directory.
Ended in "/".
Definition at line 92 of file CFileSystemWatcher.h.
| Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011 |