Public Member Functions | Protected Member Functions | Protected Attributes
MAKLogger::DtDisLogger Class Reference

DtDISLogger is a DIS interface for creating a logger. More...

+ Inheritance diagram for MAKLogger::DtDisLogger:
+ Collaboration diagram for MAKLogger::DtDisLogger:

List of all members.

Public Member Functions

virtual ~DtDisLogger ()
 Creates a DIS Logger and optionally initializes it.
virtual void init ()
 Init the Dis Logger.
virtual void setNetmask (const DtString &netmaskString)
 Temporary workaround for connection netmask parameter that is missing from exercise connection initializer.
virtual const DtString & netmask () const
 Netmask that has been set (default is empty string).
void connect (DtExerciseConnInitializer &exConnInit)
 Tell the logger to connect using an Exercise Connection Initializer.
virtual bool tick ()
 Tick the logger once, function is non-blocking.

Protected Member Functions

 DtDisLogger ()
 Protected CTOR.

Protected Attributes

DtLgrDisSimInterfacemySimInterface
DtString myNetmask

Detailed Description

DtDISLogger is a DIS interface for creating a logger.

Automatically registers the DIS protocol with the logger and provides helper functions.


Constructor & Destructor Documentation

virtual MAKLogger::DtDisLogger::~DtDisLogger ( ) [virtual]

Creates a DIS Logger and optionally initializes it.

After initialization no additional drivers may be added. Destructor for the logger.

MAKLogger::DtDisLogger::DtDisLogger ( ) [protected]

Protected CTOR.

Exceptions:
DtCorruptedStateis thrown when unable to construct logger.

Member Function Documentation

virtual void MAKLogger::DtDisLogger::init ( ) [virtual]

Init the Dis Logger.

Calls base init, then creates sim interface.

Exceptions:
DtCorruptedState

Reimplemented from MAKLogger::DtLogger.

virtual bool MAKLogger::DtDisLogger::tick ( ) [virtual]

Tick the logger once, function is non-blocking.

This causes the logger to tick for one round of execution. Typically an application will have a loop where it ticks the logger.

Returns:
Returns whether the logger should continue to be ticked.
Return values:
trueThe logger can still tick.
falseThe logger should exit.

Reimplemented from MAKLogger::DtLogger.


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)