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. | |
Protected Attributes | |
| int | myCheckpointCount |
| checkpoints between | |
| int | myCurrentPacketsCount |
| The number of packets written since last checkpoint. | |
Checkpoint policy which checkpoints are set by count.
| 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().
| true | Time for checkpoint. |
| false | Not time for checkpoint. |
Implements MAKLogger::DtCheckpointPolicy.