Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

SObserver Class Reference

#include <SObserver.h>

Inherited by ScheduleWindow, SGanttView, SGanttViewWin [private], SJobArray, SJobPropView [private], SLogger, SMachineView, SMeshViewWin [private], SPrefDialog [private], STaskSystem, and SViewEl.

Inheritance diagram for SObserver:

Inheritance graph
[legend]
List of all members.

Public Methods

 SObserver ()
 SObserver (const SObserver &rObs)
virtual ~SObserver ()
virtual void update (const SEvent &event)=0

Friends

class SObservable

Detailed Description

The observer part in the classical observer-pattern; a class that wants to observe an observable must be derived from this class. It stores a list of observable components.

See also:
SObservable


Constructor & Destructor Documentation

SObserver::SObserver   [inline]
 

Default constructor

SObserver::SObserver const SObserver &    rObs [inline]
 

Copy constructor

SObserver::~SObserver   [virtual]
 

Destructor


Member Function Documentation

virtual void SObserver::update const SEvent   event [pure virtual]
 

Here the class is informed of an event, when an observed component has sent an event by SObservable::notifyObservers()

Parameters:
event  event sent by an observed component (the reference is not guaranteed to be valid after the termination of the call to update()
See also:
SObservable::notifyObservers()

Implemented in SGanttLog, SLogger, SJobArray, and STaskSystem.


Friends And Related Function Documentation

friend class SObservable [friend]
 


The documentation for this class was generated from the following files:
Generated on Thu May 22 16:50:50 2003 for Sketch-it! by doxygen1.2.18