dbxMessage.h
Doc
#include <oedbx/dbxCommon.h>

class AS_EXPORT DbxMessage
{ public :
DbxMessage(InStream ins, int4 address);
~DbxMessage();
 
int4 GetLength() const { return Length; }
 
// !!! OE stores the message text with 0x0d 0x0a at !!!
// !!! the end of each line !!!
char * GetText() const { return Text; }
void Convert();
 
void ShowResults(OutStream outs) const;
void Analyze(int4 & headerLines, int4 & bodyLines) const;
 
private :
void init();
void readMessageText(InStream ins);
 
// Stores the address, the length and the text of the message
int4 Address, Length;
char * Text;
};

Description

DbxMessage(InStream ins, int4 address)

This class is easy to use. You only have to know the position of the first message list node in the stream (from the corresponding message info object).

int4 GetLength()

Returns the length of the message read from the dbx file. The length of the message stored in the corresponding message info object is not correct(mostly).

char * GetText()

This function returns a pointer to the whole message.

void Convert()

OE stores the messages with 0x0d 0x0a ("\r\n") at the end of each line. This function removes all 0x0d.

void ShowResults(OutStream outs)

I used this function to log my results while I tried to decode the dbx file format.

void Analyze(int4 & headerLines, int4 & bodyLines)

Used for the ShowResults function. Counts th header and body lines of the message.


Home of OE dbx file format