33 #ifndef DART_COMMON_SUBJECT_HPP_ 34 #define DART_COMMON_SUBJECT_HPP_ 84 #endif // DART_COMMON_SUBJECT_HPP_ void sendDestructionNotification() const
Send a destruction notification to all Observers.
Definition: Subject.cpp:46
The Subject class is a base class for any object that wants to report when it gets destroyed...
Definition: Subject.hpp:57
void addObserver(Observer *_observer) const
Add an Observer to the list of Observers.
Definition: Subject.cpp:57
std::set< Observer * > mObservers
List of current Observers.
Definition: Subject.hpp:78
Definition: Aspect.cpp:40
void removeObserver(Observer *_observer) const
Remove an Observer from the list of Observers.
Definition: Subject.cpp:70
virtual ~Subject()
Destructor will notify all Observers that it is destructing.
Definition: Subject.cpp:40
The Observer class should be inherited by any class that wants to respond in a customized way to the ...
Definition: Observer.hpp:51