14 #ifndef WS_MONITOR_H__
15 #define WS_MONITOR_H__
17 #define BOOST_NO_DEPRECATED
21 #include <boost/thread.hpp>
52 boost::thread*
start();
103 int signal(
const std::string& filename,
const int& code);
115 int signalConf(
const std::string& filename,
const int& code);
int startCallBack()
Starts monitoring the Files of the filesystemtree Should be started in a separated thread...
Monitors the filesystem and call the WsFsTreeUpdater::update() method accordignly.
int addDirectory(const path &p)
const char * eventName(const int &code)
Matches an event code with it's name.
handles the update of the FileSystemTree
std::vector< path > m_paths
WsFsTreeUpdater * m_updater
pointer to the WsFsTreeUpdater class
WsMonitor(WsFsTreeUpdater *u, std::vector< path > v, unsigned int delay)
Constructor.
bool m_updated
Changed occured ?
int signal(const std::string &filename, const int &code)
Called when a change occurs on a file monitored.
int signalConf(const std::string &filename, const int &code)
Called when a change occurs on a conf file monitored.
int startCallBackConfOnly()
Starts monitoring the config Files of the filesystemtree Should be started in a separated thread...
int startChecker()
Starts loop that will monitor the m_updated variable every m_delay and update the tree if changed occ...
boost::thread * start()
Starts the monitoring process.
Abstract class used for monitoring the filesystem.