31 const CString& aFilename
CString formatMultiLineHex(int aSize, uint8 *aData)
Format bytes into a multi logLine hex dump format.
int mLogStartMillis
Milliseconds of the time when the log file was created (from log header)
int mRenderWidth
Available width in pixels to render the packet detail.
Abstract base class for log item parsers.
virtual void resendPacket(int aLineNumber)=0
Resend the packet at this line number.
int mLogStartSec
Seconds of the time when the log file was created (from log header)
BOOL mIsMorning
If TRUE, the log was started in the mIsMorning (computed from log header)
virtual CString getPacketDetail(int aLineNumber)=0
Return the packet detail as a formatted string.
void reset()
Reset the log parser to initial state.
virtual CString getPacketTitle(int aLineNumber)=0
Return the packet title as a formatted string.
BOOL readLog()
Reads from the log file starting from the end of the last read position and adds it to the display...
void setRenderWidth(int aWidth)
Set the number of pixels available for rendering text.
int mLogStartHr
Hour of the time when the log file was created (from log header)
int getLineCount() const
Return the number of lines parsed so far.
std::streamoff mParseEndOffset
Offset of the log file where parsing stopped.
unsigned char uint8
8-bit unsigned integer
int mLineCount
Number of lines that have been parsed so far.
CString getFilename()
Get the path of the log file being parsed.
CString mLogFilename
File name of the currently open log file.
std::map< int, std::streamoff > mLineOffset
Map of log items to the offset in the log file where the text line starts.
void init(const CString &aFilename)
Initialize the LogParser to read a particular file.
virtual ~LogParser()
Destructor.
int mLogStartMin
Minutes of the time when the log file was created (from log header)