Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Data Structures   File List   Namespace Members   Data Fields   Globals   Related Pages   Examples  

Observable.h File Reference


Detailed Description

Observation scheme.

Author:
Ralf Gerstenberger
Date:
created at 2002/02/11

Observation is meant as an association scheme between two objects, one observed, one observing, that share an individual (observation) interface. The observed object reports events and attribute changes of some meaning through the interface to the observer, which implements this xxxObserver interface. The xxxObserver interface is defined along with the class of the observed object, where xxx is replaced with the class name. An Observer is a client to its observed object and managed by the template class Observable. A class that support the observation scheme as a type for observed objects should use Observable as a base class.

Since:
1.0


Namespaces

namespace  odemx

Defines

#define _obsForEach(ObserverType, Event)
 Broadcast event.

#define _obsAForEach(ObserverType, Attribute, oldValue, newValue)
 Broadcast attribute change.


Generated on Mon Aug 11 10:36:06 2003 for ODEMx by doxygen1.3