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. | |
| DtObserveConnectionComponent * | event () |
| Get the component which is the event. | |
| DtObserveConnectionComponent * | observer () |
| Get the component which is the observer. | |
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. | |
Protected Member Functions | |
| DtObserveConnection (DtObserveConnectionComponent *event, DtObserveConnectionComponent *observer) | |
| Protected constructor. | |
Protected Attributes | |
| DtObserveConnectionComponent * | myEvent |
| Pointer to the event component. | |
| DtObserveConnectionComponent * | myObserver |
| Pointer to the observer component. | |
DtObserveConnection is responsible for maintaining a connection between an event and an observer.
| MAKLogger::DtObserveConnection::DtObserveConnection | ( | DtObserveConnectionComponent * | event, |
| DtObserveConnectionComponent * | observer | ||
| ) | [protected] |
Protected constructor.
The event and the observer are not known be properly function together, this is ensure using the static connect function.
| static void MAKLogger::DtObserveConnection::connect | ( | DtObserveEvent< SubjectType > * | event, |
| DtObserver< SubjectType > * | observer | ||
| ) | [inline, static] |
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.