Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
MAKLogger::DtObserveConnection Class Reference

DtObserveConnection is responsible for maintaining a connection between an event and an observer. More...

+ Collaboration diagram for MAKLogger::DtObserveConnection:

List of all members.

Public Member Functions

void disconnect (DtObserveConnectionSP)
 Disconnects a shared connection.
DtObserveConnectionComponentevent ()
 Get the component which is the event.
DtObserveConnectionComponentobserver ()
 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

DtObserveConnectionComponentmyEvent
 Pointer to the event component.
DtObserveConnectionComponentmyObserver
 Pointer to the observer component.

Detailed Description

DtObserveConnection is responsible for maintaining a connection between an event and an observer.


Constructor & Destructor Documentation

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.


Member Function Documentation

template<typename SubjectType >
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.


The documentation for this class was generated from the following file:

Document ID: Generated on Tue Oct 11 19:41:03 EDT 2011 from SVN revision 107422
Copyright © 2005-2011 VT MÄK Inc. All Rights Reserved (www.mak.com)