Main MRPT website > C++ reference for MRPT 1.3.2
List of all members | 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 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< TFileSystemChangeTFileSystemChangeList
 

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

Member Typedef Documentation

Definition at line 56 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

std::string mrpt::system::CFileSystemWatcher::m_watchedDirectory
private

Ended in "/".

Definition at line 73 of file CFileSystemWatcher.h.




Page generated by Doxygen 1.8.11 for MRPT 1.3.2 SVN:Unversioned directory at Sun May 1 08:45:24 UTC 2016