Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions
MAKLogger::DtLoggerFileWriter Class Reference

Logger file writer class. More...

+ Inheritance diagram for MAKLogger::DtLoggerFileWriter:
+ Collaboration diagram for MAKLogger::DtLoggerFileWriter:

List of all members.

Public Member Functions

virtual void setDuration (const DtRelativeTime &duration)
 Artificially set the duration of a tape.
virtual const DtRelativeTimeduration () const
 Get the current duration of the file written.
virtual void setWriteBufferSize (size_t)
 Set the read buffer size.
virtual size_t getWriteBufferSize () const
 Get the read buffer size.
virtual void activate (const DtMessageInput *fileInput)
 Activate the writer.
virtual bool isActivated () const
 Get if the output has been activated.
virtual void deactivate ()
 Deactivate the writer.
virtual const DtMessageIOInfoinfo () const
 Get the Info.
virtual const DtStringfilename () const
 Get the current file name.
virtual DtFilePosition fileSize () const
 Get the current file size.
virtual DtFilePosition currentPosition () const
 Get the current file position.
virtual void flush ()
 Flush output, called after all outputs are finish for a time step.
virtual void setOutputScaling (double scaling, bool enableStatic)
 Set an output scaling value and static indicator.
const DtLoggerRecordFileloggerRecordFile () const
 Get the file the writer is writing to.

Static Public Attributes

static const DtU32 PostDataMagic = 0xCFB91181
 End of file data.

Protected Member Functions

virtual bool writePacket (const DtPacket &packet)
 Write a packet.

Protected Attributes

DtMessageIOInfomyMessageInfo
DtLoggerRecordFilemyRecordFile
size_t myBufferSize
DtMemoryBufferSP myMemory
DtSmartBuffer myCurrentMemory
bool myActivatedFlag
DtRelativeTime myDuration

Private Member Functions

 DtLoggerFileWriter (const DtLoggerFileWriter &)
 Not Implemented.
DtLoggerFileWriteroperator= (const DtLoggerFileWriter &)
 Not Implemented.

Detailed Description

Logger file writer class.


Member Function Documentation

virtual void MAKLogger::DtLoggerFileWriter::activate ( const DtMessageInput fileInput) [virtual]

Activate the writer.

This needs to be called before writing any data to the file.

Implements MAKLogger::DtMessageOutput.

virtual DtFilePosition MAKLogger::DtLoggerFileWriter::currentPosition ( ) const [virtual]

Get the current file position.

This may not be accurate if the data is buffered. Call flush to ensure this is accurate. For performance reasons you may not wish to flush frequently.

Implements MAKLogger::DtLgrFileOutput.

virtual DtFilePosition MAKLogger::DtLoggerFileWriter::fileSize ( ) const [virtual]

Get the current file size.

This may not be accurate if the data is buffered. Call flush to ensure this is accurate. For performance reasons you may not wish to flush frequently.

Implements MAKLogger::DtLgrFileOutput.

virtual void MAKLogger::DtLoggerFileWriter::setDuration ( const DtRelativeTime duration) [virtual]

Artificially set the duration of a tape.

This may be changed if a packet is written which occurs after the tame.

Implements MAKLogger::DtLgrFileOutput.


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)