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. | |
Protected Attributes | |
| DtRelativeTime | myCheckpointTime |
| The time duration between checkpoints. | |
| DtAbsoluteTime | myLastCheckpointTime |
| DtAbsoluteTime | myLastPacketTime |
| The time of the last checkpoint. | |
Checkpoint policy which checkpoints are set by time.
| virtual bool MAKLogger::DtCheckpointByTime::timeForCheckpoint | ( | ) | const [virtual] |
Function called to check to see if it is time to create a checkpoint.
| true | Time for checkpoint. |
| false | Not time for checkpoint. |
Implements MAKLogger::DtCheckpointPolicy.
The time duration between checkpoints.
This is relative to the last packet written.