MAK Data Logger API Documentation for HLA
List of all members | Public Member Functions | Protected Attributes
MAKLogger::DtCheckpointByTime Class Reference

Checkpoint policy which checkpoints are set by time. More...

+ Inheritance diagram for MAKLogger::DtCheckpointByTime:
+ Collaboration diagram for MAKLogger::DtCheckpointByTime:

Public Member Functions

virtual ~DtCheckpointByTime ()
 DTOR.
virtual bool timeForCheckpoint () const
 Function called to check to see if it is time to create a checkpoint.
virtual void reset ()
 Function called if the checkpoint mechanism should be reset.
virtual void checkpointWritten ()
 Function called after a checkpoint has been written.
virtual void packetWritten (const DtPacket &)
 Function called after a packet is written.
- Public Member Functions inherited from MAKLogger::DtCheckpointPolicy
virtual ~DtCheckpointPolicy ()
 DTOR.
virtual void connectFileOutput (DtMessageState *, DtLgrFileOutput *)
 Set the file output object. Called if the FileOuput changes.

Protected Attributes

DtRelativeTime myCheckpointTime
 The time duration between checkpoints.
DtAbsoluteTime myLastCheckpointTime
DtAbsoluteTime myLastPacketTime
 The time of the last checkpoint.
- Protected Attributes inherited from MAKLogger::DtCheckpointPolicy
PacketObserverFunctor myPacketWrittenObserver
DtMessageStatemyMessageState
DtLgrFileOutputmyLgrFileOutput

Additional Inherited Members

- Public Types inherited from MAKLogger::DtCheckpointPolicy
enum  Policy { ByCount, BySize, ByTime }
- Protected Types inherited from MAKLogger::DtCheckpointPolicy
typedef DtObserverFunctor
< DtCheckpointPolicy, DtPacket
PacketObserverFunctor
 Type of the functor connecting the checkpoint policy to the output.
- Protected Member Functions inherited from MAKLogger::DtCheckpointPolicy
void onPacketWritten (const DtPacket &)

Detailed Description

Checkpoint policy which checkpoints are set by time.

Constructor & Destructor Documentation

virtual MAKLogger::DtCheckpointByTime::~DtCheckpointByTime ( )
virtual

DTOR.

Member Function Documentation

virtual void MAKLogger::DtCheckpointByTime::checkpointWritten ( )
virtual

Function called after a checkpoint has been written.

Implements MAKLogger::DtCheckpointPolicy.

virtual void MAKLogger::DtCheckpointByTime::packetWritten ( const DtPacket )
virtual

Function called after a packet is written.

Implements MAKLogger::DtCheckpointPolicy.

virtual void MAKLogger::DtCheckpointByTime::reset ( )
virtual

Function called if the checkpoint mechanism should be reset.

Implements MAKLogger::DtCheckpointPolicy.

virtual bool MAKLogger::DtCheckpointByTime::timeForCheckpoint ( ) const
virtual

Function called to check to see if it is time to create a checkpoint.

Return values
trueTime for checkpoint.
falseNot time for checkpoint.

Implements MAKLogger::DtCheckpointPolicy.

Member Data Documentation

DtRelativeTime MAKLogger::DtCheckpointByTime::myCheckpointTime
protected

The time duration between checkpoints.

This is relative to the last packet written.

DtAbsoluteTime MAKLogger::DtCheckpointByTime::myLastCheckpointTime
protected
DtAbsoluteTime MAKLogger::DtCheckpointByTime::myLastPacketTime
protected

The time of the last checkpoint.


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

Document ID: Generated on Thu Apr 10 18:53:01 EDT 2014 from SVN revision 138105
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)