Public Member Functions | List of all members
Celartem::ObserverImpl Class Referenceabstract

#include <cel_observable.h>

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

Public Member Functions

 ObserverImpl ()
 
virtual ~ObserverImpl ()
 
void attachObservable (Observable *inObservable)
 
void detachObservable (Observable *inObservable)
 
void detachAllObservables ()
 
virtual void update (Observable *inObservable)=0
 
- Public Member Functions inherited from Celartem::Observer
virtual ~Observer ()
 

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
inObservableAn 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
inObservableAn Observable instance to detach from.
virtual void Celartem::ObserverImpl::update ( Observable inObservable)
pure virtual

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

Parameters
inObservableAn 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:

Cuminas DjVu SDK 3.0.33103
This document is made with doxygen 1.8.5 at Sun Dec 15 2013 19:38:06.
Cuminas Logo