Public Member Functions | Protected Attributes | Private Member Functions
MAKLogger::DtLoggerFileReader Class Reference

The class responsible for reading a playback file to the pipeline. More...

+ Inheritance diagram for MAKLogger::DtLoggerFileReader:
+ Collaboration diagram for MAKLogger::DtLoggerFileReader:

List of all members.

Public Member Functions

 DtLoggerFileReader (DtMessageIOInfo *info, DtLoggerPlaybackFile *file)
 CTOR.
virtual ~DtLoggerFileReader ()
 DTOR.
virtual const
DtLoggerPlaybackFile
playbackFile () const
 Get the attached file for reading.
virtual void setReadBufferSize (size_t)
 Set the read buffer size.
virtual size_t getReadBufferSize () const
 Get the read buffer size.
DtMessageInput interface implementation.
virtual void activate ()
 Called when the input is activated.
virtual void deactivate ()
 Called when the input is deactivated.
virtual void getNextMessages (DtMessageBuffer &)
 Called when the pipeline needs to get messages.
virtual void dropNextMessages ()
 Called to drop messages from the current read operation.
virtual const DtMessageIOInfoinfo () const
 The the message info for the input.
DtLgrFileInput interface implementation.
virtual double peekCurrentPacketTime ()
 Get the current packet time.
virtual int peekCurrentPacketType ()
 Get the current packet type.
virtual size_t peekCurrentPacketSize ()
 Get the current packet size.
virtual bool isCheckpointNecessary (DtAbsoluteTime currentTime, DtAbsoluteTime newTime)
 Get the current packet time.
virtual void seekToPreviousCheckpoint (DtAbsoluteTime timeToJumpBefore)
 Get the current packet time.
virtual void seekToNextCheckpoint (DtAbsoluteTime currentTime)
 Get the current packet time.
virtual const DtString & filename () const
 Get the filename.
virtual DtFilePosition fileSize () const
 Get the size of the file.
virtual DtFilePosition currentPosition () const
 Get the current position in the file.
virtual DtAbsoluteTime firstMessageTime () const
 Get the time of the first message in the file.
virtual DtAbsoluteTime lastMessageTime () const
 Get the time of the last message in the file.
virtual DtRelativeTime duration () const
 Get the duration of the file.
virtual DtAbsoluteTime lastReadTime () const
 Get the time of the last message read in the file.
virtual DtLgrEntityTrackerentityTracker () const
 Get the current entity tracker, or null if none.

Protected Attributes

DtLoggerPlaybackFilemyCurrentFile
DtAbsoluteTime myLastTimeRead
DtAbsoluteTime myLastTime
DtAbsoluteTime myFirstTime
size_t myBufferSize
DtMessageIOInfomyMessageInfo
DtMemoryBufferSP myMemory

Private Member Functions

 DtLoggerFileReader (const DtLoggerFileReader &)
 Not Implemented.
DtLoggerFileReaderoperator= (const DtLoggerFileReader &)
 Not Implemented.

Detailed Description

The class responsible for reading a playback file to the pipeline.


Member Function Documentation

virtual bool MAKLogger::DtLoggerFileReader::isCheckpointNecessary ( DtAbsoluteTime  currentTime,
DtAbsoluteTime  newTime 
) [virtual]

Get the current packet time.

Exceptions:
DtFileReadErrorfile read error.

Implements MAKLogger::DtLgrFileInput.

virtual size_t MAKLogger::DtLoggerFileReader::peekCurrentPacketSize ( ) [virtual]

Get the current packet size.

Exceptions:
DtFileReadErrorfile read error.

Implements MAKLogger::DtLgrFileInput.

virtual double MAKLogger::DtLoggerFileReader::peekCurrentPacketTime ( ) [virtual]

Get the current packet time.

Exceptions:
DtFileReadErrorfile read error.

Implements MAKLogger::DtLgrFileInput.

virtual int MAKLogger::DtLoggerFileReader::peekCurrentPacketType ( ) [virtual]

Get the current packet type.

Exceptions:
DtFileReadErrorfile read error.

Implements MAKLogger::DtLgrFileInput.

virtual void MAKLogger::DtLoggerFileReader::seekToNextCheckpoint ( DtAbsoluteTime  currentTime) [virtual]

Get the current packet time.

Exceptions:
DtFileReadErrorfile read error.

Implements MAKLogger::DtLgrFileInput.

virtual void MAKLogger::DtLoggerFileReader::seekToPreviousCheckpoint ( DtAbsoluteTime  timeToJumpBefore) [virtual]

Get the current packet time.

Exceptions:
DtFileReadErrorfile read error.

Implements MAKLogger::DtLgrFileInput.


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)