20 #ifndef MIRTK_Observer_H 21 #define MIRTK_Observer_H 23 #include "mirtk/Object.h" 25 #include "mirtk/OrderedSet.h" 26 #include "mirtk/Event.h" 55 typedef OrderedSet<Observable *> ObservableSet;
58 typedef ObservableSet::iterator ObservableIterator;
64 mirtkAttributeMacro(ObservableSet, Observables);
67 void CopyAttributes(
const Observer &);
100 #endif // MIRTK_Observer_H virtual ~Observer()
Destructor.
void ClearObservables()
Stop observing any of the currently monitored observables.
Observer()
Default constructor.
virtual void HandleEvent(Observable *, Event, const void *=NULL)=0
Receives event messages from observed objects.
Event
Events that can be observed.
Observer & operator=(const Observer &)
Assignment operator.