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:

List of all members.

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.

Protected Attributes

int myCheckpointCount
 checkpoints between
int myCurrentPacketsCount
 The number of packets written since last checkpoint.

Detailed Description

Checkpoint policy which checkpoints are set by count.


Member Function Documentation

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.


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)