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 49 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. | |
| 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 "/". | |
| typedef std::deque<TFileSystemChange> mrpt::system::CFileSystemWatcher::TFileSystemChangeList |
Definition at line 74 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.
std::string mrpt::system::CFileSystemWatcher::m_watchedDirectory [private] |
Ended in "/".
Definition at line 91 of file CFileSystemWatcher.h.
| Page generated by Doxygen 1.7.2 for MRPT 0.9.4 SVN: at Mon Jan 10 22:30:30 UTC 2011 |