![]() |
MAK Data Logger API Documentation for DIS
|
DtObserveConnection is responsible for maintaining a connection between an event and an observer. More...
Collaboration diagram for MAKLogger::DtObserveConnection:Public Member Functions | |
| void | disconnect (DtObserveConnectionSP) |
| Disconnects a shared connection. More... | |
| DtObserveConnectionComponent * | event () |
| Get the component which is the event. More... | |
| DtObserveConnectionComponent * | observer () |
| Get the component which is the observer. More... | |
Static Public Member Functions | |
| template<typename SubjectType > | |
| static void | connect (DtObserveEvent< SubjectType > *event, DtObserver< SubjectType > *observer) |
| Templated static connect function which will create a connection object between an event and an observer. More... | |
Protected Member Functions | |
| DtObserveConnection (DtObserveConnectionComponent *event, DtObserveConnectionComponent *observer) | |
| Protected constructor. More... | |
Protected Attributes | |
| DtObserveConnectionComponent * | myEvent |
| Pointer to the event component. More... | |
| DtObserveConnectionComponent * | myObserver |
| Pointer to the observer component. More... | |
DtObserveConnection is responsible for maintaining a connection between an event and an observer.
|
protected |
Protected constructor.
The event and the observer are not known be properly function together, this is ensure using the static connect function.
|
inlinestatic |
Templated static connect function which will create a connection object between an event and an observer.
Using the templated version requires that the event and the observer are templated against the same subject type.
References MAKLogger::DtObserveConnectionComponent::connect(), and MAKLogger::DtObserveConnectionComponent::isConnected().
| void MAKLogger::DtObserveConnection::disconnect | ( | DtObserveConnectionSP | ) |
Disconnects a shared connection.
| DtObserveConnectionComponent* MAKLogger::DtObserveConnection::event | ( | ) |
Get the component which is the event.
| DtObserveConnectionComponent* MAKLogger::DtObserveConnection::observer | ( | ) |
Get the component which is the observer.
|
protected |
Pointer to the event component.
|
protected |
Pointer to the observer component.