paysages3d/src/definition/DefinitionWatcher.cpp

17 lines
448 B
C++
Raw Normal View History

#include "DefinitionWatcher.h"
2015-12-11 00:39:47 +00:00
#include "DefinitionNode.h"
#include "Logs.h"
DefinitionWatcher::DefinitionWatcher() {
}
2015-12-11 00:39:47 +00:00
void DefinitionWatcher::startWatching(const DefinitionNode *root, const string &path, bool init_diff) {
DefinitionNode *node = root->findByPath(path);
if (node) {
node->addWatcher(this, init_diff);
} else {
Logs::warning() << "[Definition] Node not found for watching : " << path << endl;
}
}