MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | 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:

Public Member Functions

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

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

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 
)
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.

Member Data Documentation

DtObserveConnectionComponent* MAKLogger::DtObserveConnection::myEvent
protected

Pointer to the event component.

DtObserveConnectionComponent* MAKLogger::DtObserveConnection::myObserver
protected

Pointer to the observer component.


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

Document ID: Generated on Thu Oct 3 15:35:11 EDT 2024 from SVN revision 270037
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)