![]() |
MAK Data Logger API Documentation for HLA
|
Logger file writer class. More...
Inheritance diagram for MAKLogger::DtLoggerFileWriter:
Collaboration diagram for MAKLogger::DtLoggerFileWriter:Public Member Functions | |
| virtual | ~DtLoggerFileWriter () |
| virtual void | setDuration (const DtRelativeTime &duration) |
| Artificially set the duration of a tape. More... | |
| virtual void | setStartEndTimes (const double start, const double end) |
| Set the start and end times for writing to the output. More... | |
| virtual void | setDescription (const DtString &description) |
| Set the description to be written to the output. More... | |
| virtual const DtRelativeTime & | duration () const |
| Get the current duration of the file written. More... | |
| virtual const double | startTime () const |
| Get the start time as the time of the first data packet. More... | |
| virtual const double | endTime () const |
| Get the end time as the time of the last data packet. More... | |
| virtual void | setWriteBufferSize (size_t) |
| Set the read buffer size. More... | |
| virtual size_t | getWriteBufferSize () const |
| Get the read buffer size. More... | |
| virtual void | activate (const DtMessageInput *fileInput) |
| Activate the writer. More... | |
| virtual bool | isActivated () const |
| Get if the output has been activated. More... | |
| virtual void | deactivate () |
| Deactivate the writer. More... | |
| virtual const DtMessageIOInfo * | info () const |
| Get the Info. More... | |
| virtual const DtString & | filename () const |
| Get the current file name. More... | |
| virtual DtFilePosition | fileSize () const |
| Get the current file size. More... | |
| virtual DtFilePosition | currentPosition () const |
| Get the current file position. More... | |
| virtual void | flush () |
| Flush output, called after all outputs are finish for a time step. More... | |
| virtual void | setOutputScaling (double scaling, bool enableStatic, bool isPaused=false) |
| Set an output scaling value and static indicator. More... | |
| const DtLoggerRecordFile * | loggerRecordFile () const |
| Get the file the writer is writing to. More... | |
Public Member Functions inherited from MAKLogger::DtLgrFileOutput | |
| virtual | ~DtLgrFileOutput () |
| DTOR. More... | |
| virtual bool | outputPacket (const DtPacket &buffer) |
| Output a packet. More... | |
| virtual void | filterMessage (DtPacket *packet) |
| Filter the message, no-op. More... | |
| virtual int | lastMessageType () const |
| Get the type of the last message outputted. More... | |
| virtual size_t | lastMessageSize () const |
| Get the size of the last message outputted. More... | |
| virtual DtAbsoluteTime | lastMessageTime () const |
| Get the time of the last message outputted. More... | |
| virtual DtAbsoluteTime | firstMessageTime () const |
| Get the time of the first message outputted. More... | |
Static Public Attributes | |
| static const DtU32 | PostDataMagic = 0xCFB91181 |
| End of file data. More... | |
Protected Member Functions | |
| virtual bool | writePacket (const DtPacket &packet) |
| Write a packet. More... | |
| DtString | multiFileDescription (bool final) |
| Construct the description used when saving multiple files. More... | |
Protected Member Functions inherited from MAKLogger::DtLgrFileOutput | |
| DtLgrFileOutput () | |
| Intentionally protected constructor. More... | |
Protected Attributes | |
| DtMessageIOInfo * | myMessageInfo |
| DtLoggerRecordFile * | myRecordFile |
| size_t | myBufferSize |
| DtMemoryBufferSP | myMemory |
| DtSmartBuffer | myCurrentMemory |
| bool | myActivatedFlag |
| DtRelativeTime | myDuration |
Protected Attributes inherited from MAKLogger::DtLgrFileOutput | |
| DtAbsoluteTime | myFirstTime |
| DtAbsoluteTime | myLastTime |
| int | myLastPacketType |
| size_t | myLastPacketSize |
Private Member Functions | |
| DtLoggerFileWriter (const DtLoggerFileWriter &) | |
| Not Implemented. More... | |
| DtLoggerFileWriter & | operator= (const DtLoggerFileWriter &) |
| Not Implemented. More... | |
Logger file writer class.
|
virtual |
|
private |
Not Implemented.
|
virtual |
Activate the writer.
This needs to be called before writing any data to the file.
Implements MAKLogger::DtMessageOutput.
|
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 |
Deactivate the writer.
Implements MAKLogger::DtMessageOutput.
|
virtual |
Get the current duration of the file written.
|
virtual |
Get the end time as the time of the last data packet.
|
virtual |
Get the current file name.
Implements MAKLogger::DtLgrFileOutput.
|
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 |
Flush output, called after all outputs are finish for a time step.
Implements MAKLogger::DtMessageOutput.
|
virtual |
Get the read buffer size.
Implements MAKLogger::DtLgrFileOutput.
|
virtual |
Get the Info.
Implements MAKLogger::DtMessageOutput.
|
virtual |
Get if the output has been activated.
Implements MAKLogger::DtMessageOutput.
| const DtLoggerRecordFile* MAKLogger::DtLoggerFileWriter::loggerRecordFile | ( | ) | const |
Get the file the writer is writing to.
|
protected |
Construct the description used when saving multiple files.
This is the description preceded by parent filename and other recording information. Passing final = true resets the last start time used in the description header back to 0.0.
|
private |
Not Implemented.
|
virtual |
Set the description to be written to the output.
Implements MAKLogger::DtLgrFileOutput.
|
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.
|
virtual |
Set an output scaling value and static indicator.
Implements MAKLogger::DtMessageOutput.
|
virtual |
Set the start and end times for writing to the output.
Implements MAKLogger::DtLgrFileOutput.
|
virtual |
Set the read buffer size.
Implements MAKLogger::DtLgrFileOutput.
|
virtual |
Get the start time as the time of the first data packet.
|
protectedvirtual |
Write a packet.
Implements MAKLogger::DtLgrFileOutput.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
End of file data.