Class responsible for message Output to a file. More...
Inheritance diagram for MAKLogger::DtLgrFileOutput:
Collaboration diagram for MAKLogger::DtLgrFileOutput:Public Member Functions | |
| virtual | ~DtLgrFileOutput () |
| DTOR. | |
| virtual void | setDuration (const DtRelativeTime &relTime)=0 |
| Set the duration of the output. | |
| virtual void | setWriteBufferSize (size_t)=0 |
| Set the write buffer size suggestion. | |
| virtual size_t | getWriteBufferSize () const =0 |
| Get the write buffer size. | |
| virtual bool | outputPacket (const DtPacket &buffer) |
| Output a packet. | |
| virtual void | filterMessage (DtPacket *packet) |
| Filter the message, no-op. | |
| virtual const DtString & | filename () const =0 |
| Get the current file name. | |
| virtual DtFilePosition | fileSize () const =0 |
| Get the current file size of the output. | |
| virtual DtFilePosition | currentPosition () const =0 |
| Get the current position in the file. | |
| 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. | |
Protected Member Functions | |
| DtLgrFileOutput () | |
| Intentionally protected constructor. | |
| virtual bool | writePacket (const DtPacket &packet)=0 |
| Write a packet to the output. | |
Protected Attributes | |
| DtAbsoluteTime | myFirstTime |
| DtAbsoluteTime | myLastTime |
| int | myLastPacketType |
| size_t | myLastPacketSize |
Class responsible for message Output to a file.
| virtual DtAbsoluteTime MAKLogger::DtLgrFileOutput::firstMessageTime | ( | ) | const [virtual] |
Get the time of the first message outputted.
If no packets are outputted 0.0 is returned.
| virtual size_t MAKLogger::DtLgrFileOutput::lastMessageSize | ( | ) | const [virtual] |
Get the size of the last message outputted.
If no packets are outputted 0 is returned.
| virtual DtAbsoluteTime MAKLogger::DtLgrFileOutput::lastMessageTime | ( | ) | const [virtual] |
Get the time of the last message outputted.
If no packets are outputted 0.0 is returned.
| virtual int MAKLogger::DtLgrFileOutput::lastMessageType | ( | ) | const [virtual] |
Get the type of the last message outputted.
If no packets are outputted Type_None is returned.
| virtual bool MAKLogger::DtLgrFileOutput::writePacket | ( | const DtPacket & | packet | ) | [protected, pure virtual] |
Write a packet to the output.
This is the method to implement the actual writing.
Implemented in MAKLogger::DtLoggerFileWriter.