Simpatico
v1.10
|
Abstract class template for observer in the observer design pattern.
An Observer is notified of an event by calling its update method. The template class parameter Event is the type of object that is passed to the update() method as a message about an event.
Definition at line 19 of file Notifier.h.
#include <Observer.h>
Public Member Functions | |
virtual | ~Observer () |
Destructor. More... | |
virtual void | update (const Event &event)=0 |
Respond to news of an event. More... | |
|
virtual |
Destructor.
Definition at line 47 of file Observer.h.
|
pure virtual |
Respond to news of an event.
event | Object containing information about the event. |