Public Member Functions

Celartem::ObserverImpl Class Reference

#include <cel_observable.h>

Inheritance diagram for Celartem::ObserverImpl:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ObserverImpl ()
virtual ~ObserverImpl ()
void attachObservable (Observable *inObservable)
void detachObservable (Observable *inObservable)
void detachAllObservables ()
virtual void update (Observable *inObservable)=0

Detailed Description

This Observer Implementation is intentionally separated from Observer class and if you want to implement Observer derivative classes easily, you can use ObserverImpl class.


Constructor & Destructor Documentation

Celartem::ObserverImpl::ObserverImpl (  ) 

Implementation of constructor; do nothing at all.

virtual Celartem::ObserverImpl::~ObserverImpl (  )  [virtual]

Implementation of destructor; do nothing at all.


Member Function Documentation

void Celartem::ObserverImpl::attachObservable ( Observable inObservable  ) 

This method attaches this instance to the specified Observable instance. This method internally calls Observable::attachObserver method.

Parameters:
inObservable An Observable instance to attach to.
void Celartem::ObserverImpl::detachAllObservables (  ) 

This method detaches this instance from all it's observing Observable instances. This method internally calls Observable::detachObserver method.

void Celartem::ObserverImpl::detachObservable ( Observable inObservable  ) 

This method detaches this instance from the specified Observable instance. This method internally calls Observable::detachObserver method.

Parameters:
inObservable An Observable instance to detach from.
virtual void Celartem::ObserverImpl::update ( Observable inObservable  )  [pure virtual]

This method is usually invoked by Observable::notify method.

Parameters:
inObservable An Observable instance that invokes this method. You can use this parameter to gather information about the current status.

Implements Celartem::Observer.


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

This document is made with doxygen 1.7.1 at Sat Mar 31 2012 04:35:57.
Caminova Logo