![]() |
MAK Data Logger API Documentation for DIS
|
Necessary Predefinitions. More...
Inheritance diagram for MAKLogger::DtObserveEvent< SubjectType >:
Collaboration diagram for MAKLogger::DtObserveEvent< SubjectType >:Public Types | |
| typedef DtObserver< SubjectType > | SubjectObserver |
| Type definition for list of Observers. More... | |
| typedef std::list< DtObserver < SubjectType > * > | ObserverList |
Public Types inherited from MAKLogger::DtObserveConnectionComponent | |
| typedef std::list < DtObserveConnectionSP > | ConnectionList |
Public Member Functions | |
| DtObserveEvent () | |
| CTOR for the object. No parameters are used. More... | |
| virtual | ~DtObserveEvent () |
| DTOR for the class. More... | |
| virtual void | connect (DtObserveConnectionSP con) |
| Connects an event to an existing shared connection. More... | |
| virtual void | disconnect (DtObserveConnectionSP con) |
| Disconnects an event from a shared connection. More... | |
| virtual void | disconnect (SubjectObserver *observer) |
| Disconnects the event from a specific observer. More... | |
| void | observeSubject (const SubjectType &value) |
| The event call which will cause all observers to observe the provided subject object. More... | |
Public Member Functions inherited from MAKLogger::DtObserveConnectionComponent | |
| virtual | ~DtObserveConnectionComponent () |
| virtual void | disconnect (DtObserveConnectionComponent *component) |
| virtual bool | isConnected (DtObserveConnectionComponent *component) |
| void | disconnectAll () |
| Must be non virtual since called by destructor. More... | |
Protected Attributes | |
| ObserverList | myObservers |
| A list of observers to call when inspecting. More... | |
Protected Attributes inherited from MAKLogger::DtObserveConnectionComponent | |
| ConnectionList | myConnections |
Additional Inherited Members | |
Protected Member Functions inherited from MAKLogger::DtObserveConnectionComponent | |
| DtObserveConnectionComponent () | |
| DtObserveConnection C. More... | |
| DtObserveConnectionComponent (const DtObserveConnectionComponent &) | |
| CopyCTOR not implemented. More... | |
| DtObserveConnectionComponent & | operator= (const DtObserveConnectionComponent &) |
| Assignment operator not implemented. More... | |
| DtObserveConnectionSP | findEventObserverConnection (DtObserveConnectionComponent *event, DtObserveConnectionComponent *observer) |
Necessary Predefinitions.
DtObserveEvent represents an event which observers can be connected to and when the event is fired using the observeSubject call each observer has it's own function called.
| typedef std::list<DtObserver<SubjectType>*> MAKLogger::DtObserveEvent< SubjectType >::ObserverList |
| typedef DtObserver<SubjectType> MAKLogger::DtObserveEvent< SubjectType >::SubjectObserver |
Type definition for list of Observers.
|
inline |
CTOR for the object. No parameters are used.
|
inlinevirtual |
DTOR for the class.
|
inlinevirtual |
Connects an event to an existing shared connection.
This function is used by the Connection object to connect Events to Observers.
| DtInvalidInput | Thrown if the ConnectionSP is null. |
Reimplemented from MAKLogger::DtObserveConnectionComponent.
|
inlinevirtual |
Disconnects an event from a shared connection.
This function is only called by the Connection object to disconnect Events and Observers
| <value> | <interpretations of="" value>=""> |
| <value> | <interpretations of="" value>=""> |
| DtInvalidInput | Thrown if the ConnectionSP is null. |
Reimplemented from MAKLogger::DtObserveConnectionComponent.
|
inlinevirtual |
Disconnects the event from a specific observer.
|
inline |
The event call which will cause all observers to observe the provided subject object.
|
protected |
A list of observers to call when inspecting.
Referenced by MAKLogger::DtObserveEvent< MAKLogger::DtStateObject >::connect(), MAKLogger::DtObserveEvent< MAKLogger::DtStateObject >::disconnect(), and MAKLogger::DtObserveEvent< MAKLogger::DtStateObject >::observeSubject().