Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

ogs::support::Observer Class Reference

An object that observes other objects. More...

#include <Observer.h>

Inheritance diagram for ogs::support::Observer:

Inheritance graph
[legend]
List of all members.

Protected Member Functions

virtual void handleEvent (Event &event)=0
 Handle an event.


Friends

void Object::notifyObservers (Event &event)

Detailed Description

This class provides part of the Observer pattern; it can handle event notifications sent from observed objects. Subclasses should derive from this class if the class observes other objects.


Member Function Documentation

virtual void ogs::support::Observer::handleEvent Event event  )  [protected, pure virtual]
 

Observers must implement this function. No default event handler is provided by the Observer class.

Parameters:
event An event from an observed object.


The documentation for this class was generated from the following file:
Generated on Sun Apr 20 03:40:59 2003 for Open Gaming System (OGS) by doxygen1.3