Main MRPT website > C++ reference
MRPT logo
Classes | Public Types | Public Member Functions | Private Attributes

mrpt::system::CFileSystemWatcher Class Reference


Detailed Description

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>

List of all members.

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 "/".

Member Typedef Documentation

Definition at line 74 of file CFileSystemWatcher.h.


Constructor & Destructor Documentation

mrpt::system::CFileSystemWatcher::CFileSystemWatcher ( const std::string &  path)

Creates the subscription to a specified path.

Parameters:
pathThe file or directory to watch.
virtual mrpt::system::CFileSystemWatcher::~CFileSystemWatcher ( ) [virtual]

Destructor.


Member Function Documentation

void mrpt::system::CFileSystemWatcher::getChanges ( TFileSystemChangeList out_list)

Call this method sometimes to get the list of changes in the watched directory.

See also:
processChange

Member Data Documentation

Ended in "/".

Definition at line 91 of file CFileSystemWatcher.h.




Page generated by Doxygen 1.7.3 for MRPT 0.9.4 SVN: at Sat Mar 26 06:16:28 UTC 2011