![]() |
MAK Data Logger API Documentation for DIS
|
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. | |
| 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. | |
Public Member Functions inherited from MAKLogger::DtLgrFileOutput | |
| virtual | ~DtLgrFileOutput () |
| DTOR. | |
| virtual bool | outputPacket (const DtPacket &buffer) |
| Output a packet. | |
| virtual void | filterMessage (DtPacket *packet) |
| Filter the message, no-op. | |
| virtual int | lastMessageType () const |
| Get the type of the last message outputted. | |
| virtual size_t | lastMessageSize () const |
| Get the size of the last message outputted. | |
| virtual DtAbsoluteTime | lastMessageTime () const |
| Get the time of the last message outputted. | |
| virtual DtAbsoluteTime | firstMessageTime () const |
| Get the time of the first message outputted. | |
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 Member Functions inherited from MAKLogger::DtLgrFileOutput | |
| DtLgrFileOutput () | |
| Intentionally protected constructor. | |
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. | |
| DtLoggerFileWriter & | operator= (const DtLoggerFileWriter &) |
| Not Implemented. | |
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 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.
|
private |
Not Implemented.
|
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 read buffer size.
Implements MAKLogger::DtLgrFileOutput.
|
protectedvirtual |
Write a packet.
Implements MAKLogger::DtLgrFileOutput.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
End of file data.