14 #ifndef WS_FS_TREE_UPDATER_H__
15 #define WS_FS_TREE_UPDATER_H__
17 #define BOOST_NO_DEPRECATED
25 #include <boost/thread.hpp>
41 WsFsTreeUpdater(
const std::string& p,
unsigned int delay,
bool m =
false);
boost::mutex m_updateMutex
bool m_isMonitor
Use Gamin or no.
Monitors the filesystem and call the WsFsTreeUpdater::update() method accordignly.
int update()
update the fsTree
std::string m_rootPath
RootPath.
handles the update of the FileSystemTree
FileSystemTreePtr m_fsTree
FileSystemTreePtr getLastTree()
returns the last created tree
int startRegularUpdate()
Starts the regular update of the tree.
boost::shared_ptr< WsFileSystemTree > FileSystemTreePtr
int threadUpdate()
Updates the tree in a thread.
WsAbstractMonitor * m_monitor
Pointer to the file monitoring class used.
unsigned int m_delay
Delay after which the FileSystemTree will be updated if changed occured.
WsFsTreeUpdater(const std::string &p, unsigned int delay, bool m=false)
constrictor
Structure representing all the fs tree from the root.
bool isLastVersion(FileSystemTreePtr fs)
checks whether the fs is the last version
Abstract class used for monitoring the filesystem.