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 Types | Public Member Functions | Protected Attributes
MAKLogger::DtObserveEvent< SubjectType > Class Template Reference

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...
 
DtObserveConnectionComponentoperator= (const DtObserveConnectionComponent &)
 Assignment operator not implemented. More...
 
DtObserveConnectionSP findEventObserverConnection (DtObserveConnectionComponent *event, DtObserveConnectionComponent *observer)
 

Detailed Description

template<typename SubjectType>
class MAKLogger::DtObserveEvent< SubjectType >

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.

Member Typedef Documentation

template<typename SubjectType>
typedef std::list<DtObserver<SubjectType>*> MAKLogger::DtObserveEvent< SubjectType >::ObserverList
template<typename SubjectType>
typedef DtObserver<SubjectType> MAKLogger::DtObserveEvent< SubjectType >::SubjectObserver

Type definition for list of Observers.

Constructor & Destructor Documentation

template<typename SubjectType>
MAKLogger::DtObserveEvent< SubjectType >::DtObserveEvent ( )
inline

CTOR for the object. No parameters are used.

template<typename SubjectType>
virtual MAKLogger::DtObserveEvent< SubjectType >::~DtObserveEvent ( )
inlinevirtual

DTOR for the class.

Member Function Documentation

template<typename SubjectType>
virtual void MAKLogger::DtObserveEvent< SubjectType >::connect ( DtObserveConnectionSP  con)
inlinevirtual

Connects an event to an existing shared connection.

This function is used by the Connection object to connect Events to Observers.

Exceptions
DtInvalidInputThrown if the ConnectionSP is null.
Postcondition
Calls to inspect will call the observer in the input connection.
Warning
This function is public but is not callable by user code.

Reimplemented from MAKLogger::DtObserveConnectionComponent.

template<typename SubjectType>
virtual void MAKLogger::DtObserveEvent< SubjectType >::disconnect ( DtObserveConnectionSP  con)
inlinevirtual

Disconnects an event from a shared connection.

This function is only called by the Connection object to disconnect Events and Observers

Returns
Return values
<value><interpretations of="" value>="">
<value><interpretations of="" value>="">
Exceptions
DtInvalidInputThrown if the ConnectionSP is null.
Precondition
<what must="" be="" true="" before="" this="" function="" is="" called>="">
Postcondition
<what will="" be="" true="" as="" a="" result="" of="" this="" function>="">
Warning

Reimplemented from MAKLogger::DtObserveConnectionComponent.

template<typename SubjectType>
virtual void MAKLogger::DtObserveEvent< SubjectType >::disconnect ( SubjectObserver observer)
inlinevirtual

Disconnects the event from a specific observer.

template<typename SubjectType>
void MAKLogger::DtObserveEvent< SubjectType >::observeSubject ( const SubjectType &  value)
inline

The event call which will cause all observers to observe the provided subject object.

Member Data Documentation

template<typename SubjectType>
ObserverList MAKLogger::DtObserveEvent< SubjectType >::myObservers
protected

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

Document ID: Generated on Thu Dec 18 15:35:09 EST 2025 from SVN revision 282494
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)