Collaboration diagram for uscxml::DirectoryWatch:
[legend]

Public Types

enum  Action { ADDED = 1, MODIFIED = 2, DELETED = 4, EXISTING = 8 }
 

Public Member Functions

 DirectoryWatch (const std::string &dir, bool recurse=false)
 
void addMonitor (DirectoryWatchMonitor *monitor)
 
std::map< std::string, struct stat > getAllEntries ()
 
void removeMonitor (DirectoryWatchMonitor *monitor)
 
void reportAsDeleted ()
 
void setLogger (Logger logger)
 
void updateEntries (bool reportAsExisting=false)
 

Protected Types

typedef std::set< DirectoryWatchMonitor * > _monitors_t
 

Protected Member Functions

 DirectoryWatch (const std::string &dir, const std::string &relDir)
 

Protected Attributes

std::string _dir
 
std::map< std::string, DirectoryWatch * > _knownDirs
 
std::map< std::string, struct stat > _knownEntries
 
time_t _lastChecked
 
Logger _logger
 
std::set< DirectoryWatchMonitor * > _monitors
 
bool _recurse
 
std::string _relDir
 

The documentation for this class was generated from the following files: