MRPT logo

mrpt::system::CFileSystemWatcher Class Reference

This class subscribes to notifications of file system changes, thus it can be used to efficiently stay informed about changes in a directory tree. More...

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


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 47 of file CFileSystemWatcher.h.


Member Typedef Documentation

Definition at line 64 of file CFileSystemWatcher.h.


Constructor & Destructor Documentation

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

Creates the subscription to a specified path.

Parameters:
path The 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 81 of file CFileSystemWatcher.h.




Page generated by Doxygen 1.5.8 for MRPT 0.6.5 SVN: at Thu Feb 26 02:18:33 EST 2009