Celartem::Observable Class Reference

#include <cel_observable.h>

Inheritance diagram for Celartem::Observable:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void notify ()
void attachObserver (Observer *inObserver)
void detachObserver (Observer *inObserver)
void detachAllObservers ()


Detailed Description

Observable is a class that provides the notification mechanism to several Observer class instances. This class is abstract class and constructors are hidden not to create the instances directly, you should inherit the class to use Observable feature.

Definition at line 26 of file cel_observable.h.


Member Function Documentation

virtual void Celartem::Observable::notify (  )  [virtual]

This method invokes Observer::update of the attached observer instances.

void Celartem::Observable::attachObserver ( Observer inObserver  ) 

This method attaches the specified Observer instance.

Parameters:
inObserver An Observer instance to attach.

void Celartem::Observable::detachObserver ( Observer inObserver  ) 

This method detaches the specified Observer instance.

Parameters:
inObserver An Observer instance to detach.

void Celartem::Observable::detachAllObservers (  ) 

This method detaches all the Observer instances which have been attached to this instance.


The documentation for this class was generated from the following file:
This document is automatically generated using doxygen 1.5.4 at Fri Jun 27 18:23:18 2008.