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

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

+ Inheritance diagram for MAKLogger::DtCheckpointByCount:
+ Collaboration diagram for MAKLogger::DtCheckpointByCount:

Public Member Functions

virtual ~DtCheckpointByCount ()
 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

int myCheckpointCount
 checkpoints between
int myCurrentPacketsCount
 The number of packets written since 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 count.

Constructor & Destructor Documentation

virtual MAKLogger::DtCheckpointByCount::~DtCheckpointByCount ( )
virtual

DTOR.

Member Function Documentation

virtual void MAKLogger::DtCheckpointByCount::checkpointWritten ( )
virtual

Function called after a checkpoint has been written.

Implements MAKLogger::DtCheckpointPolicy.

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

Function called after a packet is written.

Implements MAKLogger::DtCheckpointPolicy.

virtual void MAKLogger::DtCheckpointByCount::reset ( )
virtual

Function called if the checkpoint mechanism should be reset.

Implements MAKLogger::DtCheckpointPolicy.

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

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

In this case it will check to see if the # of packets written exceeds packetsBetweenCheckpoints().

Return values
trueTime for checkpoint.
falseNot time for checkpoint.

Implements MAKLogger::DtCheckpointPolicy.

Member Data Documentation

int MAKLogger::DtCheckpointByCount::myCheckpointCount
protected

checkpoints between

int MAKLogger::DtCheckpointByCount::myCurrentPacketsCount
protected

The number of packets written since last checkpoint.


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

Document ID: Generated on Thu Apr 11 12:13:00 EDT 2013 from SVN revision 126011
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)