FreeCAD C++
|
#include <Base/Observer.h>
Observer class Implementation of the well known Observer Design Pattern. The observed object, which inherit FCSubject, will call all its observers in case of changes. A observer class has to Attach itself to the observed object.
Public Member Functions | |
Observer () | |
virtual | ~Observer () |
virtual void | OnChange (Subject< _MessageType > &rCaller, _MessageType rcReason)=0 |
virtual void | OnDestroy (Subject< _MessageType > &rCaller) |
virtual const char * | Name (void) |
Base::Observer< _MessageType >::Observer | ( | ) |
A constructor. No special function so far.
|
virtual |
A destructor. No special function so far.
|
virtual |
|
pure virtual |
This method need to be reimplemented from the concrete Observer and get called by the observed class
rCaller | a reference to the calling object |
rcReason |
Implemented in Gui::MacroManager, MeshGui::ViewProviderMeshCurvature, and InspectionGui::ViewProviderInspection.
|
virtual |
This method need to be reimplemented from the concrete Observer and get called by the observed class
rCaller | a reference to the calling object |