#include <Subject_Observer.h>
Inheritance diagram for Observer:

This is a base class for any implementation of a Design pattern Observer. The class that is presenting data must be a child of the base class Observer. The role of this class is to define an updating interface for objects that should be notified of changes in a subject.
class ControlPanel: public Observer { public: int i; };
Cite_: Reference: Gamma, E., Helm, R. Johnson, R. et Vlissides, J. Design Patterns - Elements of Reusable Object-Oriented Software. Addison-Wesley, 1995, 395 pages.
Definition at line 99 of file Subject_Observer.h.
Public Member Functions | |
| virtual | ~Observer () |
| Destructor. | |
| virtual void | Update (Subject *theChangedSubject)=0 |
| Virtual function that must be overloaded to refresh the data displayed properly. | |
Protected Member Functions | |
| Observer () | |
| Constructor. | |
| void Observer::Update | ( | Subject * | theChangedSubject | ) | [pure virtual] |
Virtual function that must be overloaded to refresh the data displayed properly.
| theChanedSubject | a pointer to the Subject that requested the update |
Implemented in Canvas3D, KinControlPanel, and DynControlPanel.
Definition at line 86 of file Subject_Observer.cpp.
1.5.1