Logger file writer class. More...
Inheritance diagram for MAKLogger::DtLoggerFileWriter:
Collaboration diagram for MAKLogger::DtLoggerFileWriter:Public Member Functions | |
| virtual void | setDuration (const DtRelativeTime &duration) |
| Artificially set the duration of a tape. | |
| virtual const DtRelativeTime & | duration () 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 DtMessageIOInfo * | info () const |
| Get the Info. | |
| virtual const DtString & | filename () 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 DtLoggerRecordFile * | loggerRecordFile () 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 | |
| DtMessageIOInfo * | myMessageInfo |
| DtLoggerRecordFile * | myRecordFile |
| size_t | myBufferSize |
| DtMemoryBufferSP | myMemory |
| DtSmartBuffer | myCurrentMemory |
| bool | myActivatedFlag |
| DtRelativeTime | myDuration |
Private Member Functions | |
| DtLoggerFileWriter (const DtLoggerFileWriter &) | |
| Not Implemented. | |
| DtLoggerFileWriter & | operator= (const DtLoggerFileWriter &) |
| Not Implemented. | |
Logger file writer class.
| 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.