![]() |
MAK Data Logger API Documentation for HLA
|
ObserverFunctor is an observer implemented via Functor object which will call an object's member function. More...
Inheritance diagram for MAKLogger::DtObserverFunctor< ClassType, SubjectType >:
Collaboration diagram for MAKLogger::DtObserverFunctor< ClassType, SubjectType >:Public Types | |
| typedef void(ClassType::* | ObserverMemberFunction )(const SubjectType &) |
Public Member Functions | |
| DtObserverFunctor (ClassType &object, ObserverMemberFunction function) | |
| virtual | ~DtObserverFunctor () |
| void | observe (const SubjectType &subject) |
| Abstract observe function called when a connected event fires. | |
Public Member Functions inherited from MAKLogger::DtObserver< SubjectType > | |
| virtual | ~DtObserver () |
| DTOR which disconnects the observer from all events. | |
| virtual void | disconnect (DtObserveEvent< SubjectType > *event) |
| Disconnect the observer from a specific event. | |
Public Member Functions inherited from MAKLogger::DtObserveConnectionComponent | |
| virtual | ~DtObserveConnectionComponent () |
| virtual void | connect (DtObserveConnectionSP con) |
| virtual void | disconnect (DtObserveConnectionSP con) |
| virtual void | disconnect (DtObserveConnectionComponent *component) |
| virtual bool | isConnected (DtObserveConnectionComponent *component) |
| void | disconnectAll () |
| Must be non virtual since called by destructor. | |
Protected Member Functions | |
| DtObserverFunctor (const DtObserverFunctor &) | |
| CopyCTOR not implemented. | |
| DtObserverFunctor & | operator= (const DtObserverFunctor &) |
| Assignment operator not implemented. | |
Protected Attributes | |
| ClassType & | myObject |
| ObserverMemberFunction | myFunction |
ObserverFunctor is an observer implemented via Functor object which will call an object's member function.
The ObserverFunctor should be used with Value semantics (ie a value member of the calling object) however they are not copyable and this is since if the owner object is copied the copy's functor will need to be reassigned.
| typedef void(ClassType::* MAKLogger::DtObserverFunctor< ClassType, SubjectType >::ObserverMemberFunction)(const SubjectType &) |
|
inline |
|
inlinevirtual |
|
protected |
CopyCTOR not implemented.
|
inlinevirtual |
Abstract observe function called when a connected event fires.
Implements MAKLogger::DtObserver< SubjectType >.
|
protected |
Assignment operator not implemented.
|
protected |
|
protected |