Base class for classes that receive messages from observables. More...
#include <vgui_observer.h>
Public Member Functions | |
vgui_observer () | |
Constructor - create a default observable. | |
virtual | ~vgui_observer () |
Destructor. | |
virtual void | update () |
Called by the observable when some event occurs. | |
virtual void | update (vgui_message const &) |
Called by the observable with a message. | |
virtual void | update (vgui_observable const *) |
Called by the observable with a message. |
Base class for classes that receive messages from observables.
Observers attach them selves to a vgui_observable object. The observable can broadcast a vgui_message or an update to all the vgui_observer's attached to themselves.
Definition at line 29 of file vgui_observer.h.
vgui_observer::vgui_observer | ( | ) | [inline] |
Constructor - create a default observable.
Definition at line 33 of file vgui_observer.h.
virtual vgui_observer::~vgui_observer | ( | ) | [inline, virtual] |
Destructor.
Definition at line 36 of file vgui_observer.h.
void vgui_observer::update | ( | ) | [virtual] |
Called by the observable when some event occurs.
Definition at line 14 of file vgui_observer.cxx.
void vgui_observer::update | ( | vgui_message const & | ) | [virtual] |
Called by the observable with a message.
Definition at line 19 of file vgui_observer.cxx.
void vgui_observer::update | ( | vgui_observable const * | ) | [virtual] |
Called by the observable with a message.
Definition at line 24 of file vgui_observer.cxx.