21 #ifndef PROPERTYOBSERVABLE_H
22 #define PROPERTYOBSERVABLE_H
24 #include <tulip/tulipconf.h>
25 #include <tulip/Node.h>
26 #include <tulip/Edge.h>
27 #include <tulip/Observable.h>
31 class PropertyInterface;
41 class _DEPRECATED TLP_SCOPE PropertyObserver {
44 virtual ~PropertyObserver() {}
45 virtual void beforeSetNodeValue(PropertyInterface*,
const node) {}
46 virtual void afterSetNodeValue(PropertyInterface*,
const node) {}
47 virtual void beforeSetEdgeValue(PropertyInterface*,
const edge) {}
48 virtual void afterSetEdgeValue(PropertyInterface*,
const edge) {}
49 virtual void beforeSetAllNodeValue(PropertyInterface*) {}
50 virtual void afterSetAllNodeValue(PropertyInterface*) {}
51 virtual void beforeSetAllEdgeValue(PropertyInterface*) {}
52 virtual void afterSetAllEdgeValue(PropertyInterface*) {}
53 virtual void destroy(PropertyInterface*) {}
55 void treatEvent(
const Event& ev);