Generic message wrapper
Size | GMessage::CheckSum (char *input, Size len) Kratky_komentar_s_teckou_na_konci |
Void | GMessage::Clear () Clears all MsgFields |
Err | GMessage::DebugHeaders (LogFile *aLogFile, Char *aLogLabel, LogLevel aLogLevel) Debugging method |
Err | GMessage::Delete (Char *aFieldName) Deletes a MsgField |
GMessage::GMessage (LogFile *aLogFile) Constructor for GMessage | |
GMessage::GMessage (const GMessage *aGMessage, LogFile *aLogFile) Constructor for GMessage | |
GMessage::GMessage (Char *aFileName, LogFile *aLogFile) Constructor - loading structure from a file | |
GMessage::GMessage (Void *aBuffer, Size aSize, LogFile *aLogFile) Constructor - loading structure from a byte stream | |
Err | GMessage::GetAsBasicTime (Char *aFieldName, BasicTime *t) const Returns the contents of a MsgField as an BasicTime |
Void* | GMessage::GetAsBytes (Char *aFieldName, Size *aSize) const Returns the contents of a MsgField as a byte stream |
Err | GMessage::GetAsFile (Char *aFieldName, Char *aFileName) const Returns the contents of a MsgField as a file |
GMessage* | GMessage::GetAsGMessage (Char *aFieldName) const Returns the contents of a MsgField as an GMessage |
Err | GMessage::GetAsID (Char *aFieldName, ID *t) const Returns the contents of a MsgField as an int |
Err | GMessage::GetAsInt (Char *aFieldName, Int *i) const Returns the contents of a MsgField as an int |
MsgField* | GMessage::GetAsMsgField (Char *aFieldName) const Returns the contents of a MsgField as a MsgField |
Err | GMessage::GetAsSize (Char *aFieldName, Size *i) const Returns the contents of a MsgField as an Size |
Char* | GMessage::GetAsString (Char *aFieldName) const Returns the contents of a MsgField as a NULL terminated string |
Void | GMessage::Initialize () Initialization of attributes called from constructors |
Err | GMessage::LoadFromBytes (Void *aBuffer, Size aLength) Loads the fields from a byte stream |
Err | GMessage::LoadFromFile (Char *aFileName) Loads the fields from file |
Char* | GMessage::ReadBytesHeader (Void *aBuffer, Size aLength, Size *aSize, Size *anOffset) Reads the field name + delimitor + size from the byte stream |
Char* | GMessage::ReadFileHeader (File *aFile, Size *aSize) Reads the field name + delimitor + size from the file |
Err | GMessage::Rename (Char *aFieldName, Char *newFieldName) Changes the name of a MsgField |
Err | GMessage::SetAsBasicTime (Char *aFieldName, BasicTime aVariable) Sets the contents of a MsgField by copying it from bastime variable |
Err | GMessage::SetAsBytes (Char *aFieldName, Void *aBuffer, Size aSize) Set the contents of a MsgField by copying it from a byte stream |
Err | GMessage::SetAsFile (Char *aFieldName, Char *aFileName) Set the contents of a MsgField by copying it from a file |
Err | GMessage::SetAsGMessage (Char *aFieldName, GMessage *aGMessage) Set the contents of a MsgField by copying it from an GMessage |
Err | GMessage::SetAsID (Char *aFieldName, ID aVariable) Sets the contents of a MsgField by copying it from int variable |
Err | GMessage::SetAsInt (Char *aFieldName, Int aVariable) Sets the contents of a MsgField by copying it from int variable |
Err | GMessage::SetAsMsgField (Char *aFieldName, MsgField *aField) Set the contents of a MsgField by copying it from another MsgField |
Err | GMessage::SetAsSize (Char *aFieldName, Size aVariable) Kratky_komentar_s_teckou_na_konci |
Err | GMessage::SetAsString (Char *aFieldName, Char *aString) Set the contents of a MsgField by copying it from a NULL terminated str |
Size | GMessage::SizeOf () const Returns the size of the eso message in bytes |
Void* | GMessage::StoreToBytes (Size *aSize) const Stores information held by MsgFields into a byte stream |
Err | GMessage::StoreToFile (Char *aFileName) const Stores information held by MsgFields into a file |
MsgField* | GMessage::StoreToMsgField (Char *aFieldName) const Stores information held by MsgFields into a newly created MsgField |
Size | GMessage::Sum (char *input, Size len) Kratky_komentar_s_teckou_na_konci |
Err | GMessage::WriteBytesHeader (Void *aBuffer, MsgField *aMsgField, Size *anOffset) const Writes the field name + delimitor + size into the byte stream |
Err | GMessage::WriteFileHeader (File *aFile, MsgField *aMsgField) const Writes the field name + delimitor + size into the file |
GMessage::~GMessage () Denstructor for GMessage |
methods
|
attributes
| |||
methods |
Generic message wrapper. enables reading and writing of named fields. Each is one of two types: BytesMsgField or FileMsgField, enabling to handle the contents of the field as a byte stream or as a file.Description: This file contains the GMessage class which is used not only for parsing an incoming message or constructing an outcoming one. It is also used as a general information storing mechanism which enables usage of named fields.
Allows nested messages through SetAsMessage, GetAsMessage.
alphabetic index hierarchy of classes
generated by doc++