Public Member Functions
vgui_observer Class Reference

Base class for classes that receive messages from observables. More...

#include <vgui_observer.h>

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


The documentation for this class was generated from the following files: