Observer Class Reference

The class Observer is the base class to derive in order to receive notifications from observed object. More...

#include <Observer.h>

List of all members.

Public Member Functions

virtual ~Observer ()
virtual void willChangeValueForKey (string, Observable *)=0
virtual void didChangeValueForKey (string, Observable *)=0

Detailed Description

The class Observer is the base class to derive in order to receive notifications from observed object.

An generic observer must first register itself as observer for an attribute of an instance of a class: whenever this attribute is changed, the observer is notified before and after value changed.


Constructor & Destructor Documentation

virtual Observer::~Observer (  )  [inline, virtual]

Member Function Documentation

virtual void Observer::didChangeValueForKey ( string  ,
Observable  
) [pure virtual]
virtual void Observer::willChangeValueForKey ( string  ,
Observable  
) [pure virtual]

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

Generated by  doxygen 1.6.2