2015-08-16 22:29:54 +00:00
|
|
|
#ifndef DEFINITIONWATCHER_H
|
|
|
|
#define DEFINITIONWATCHER_H
|
|
|
|
|
|
|
|
#include "definition_global.h"
|
|
|
|
|
|
|
|
namespace paysages {
|
|
|
|
namespace definition {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Base class for watchers of the definition tree.
|
|
|
|
*
|
|
|
|
* Watchers will be registered in DiffManager to receive DefinitionDiff objects.
|
|
|
|
*/
|
2015-11-09 21:30:46 +00:00
|
|
|
class DEFINITIONSHARED_EXPORT DefinitionWatcher {
|
|
|
|
public:
|
2015-08-16 22:29:54 +00:00
|
|
|
DefinitionWatcher();
|
2015-08-17 20:55:30 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Abstract method called when a node changed.
|
|
|
|
*/
|
|
|
|
virtual void nodeChanged(const DefinitionNode *node, const DefinitionDiff *diff) = 0;
|
2015-08-16 22:29:54 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // DEFINITIONWATCHER_H
|