#include <cel_observable.h>
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 () |
This Observer Implementation is intentionally separated from Observer class and if you want to implement Observer derivative classes easily, you can use ObserverImpl class.
Celartem::ObserverImpl::ObserverImpl | ( | ) |
Implementation of constructor; do nothing at all.
|
virtual |
Implementation of destructor; do nothing at all.
void Celartem::ObserverImpl::attachObservable | ( | Observable * | inObservable | ) |
This method attaches this instance to the specified Observable instance. This method internally calls Observable::attachObserver method.
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.
inObservable | An Observable instance to detach from. |
|
pure virtual |
This method is usually invoked by Observable::notify method.
inObservable | An Observable instance that invokes this method. You can use this parameter to gather information about the current status. |
Implements Celartem::Observer.