In file /home/eternity/Source/Common/GMessage/H/msgField.h:

class BytesMsgField : public MsgField

Bytes message field

Inheritance:

BytesMsgField < MsgField < Field < Debugable


Public Methods

BytesMsgField::BytesMsgField (Char *aFieldName, Void *aBuffer, Size aSize, LogFile *aLogFile)
BytesMsgField constructor
Field* BytesMsgField::CreateCopy ()
Returns copy of itself
Void* BytesMsgField::GetAsBytes (Size *aSize)
Returns a copy of the stored information as a byte stream
Err BytesMsgField::GetAsFile (Char *aFileName)
Stores the information in a file "aFileName"
GMessage* BytesMsgField::GetAsGMessage ()
This is used for unnesting a nested GMessage
Err BytesMsgField::ReadFromFile (File *aFile, Size aSize)
Reads "aSize" bytes from "aFile" to "value" and "size"
Err BytesMsgField::SetAsBytes (Void *aBuffer, Size aSize)
Gets (and stores) the information from a byte stream
Err BytesMsgField::SetAsFile (Char *aFileName)
Gets (and stores) the information from a file
Size BytesMsgField::SizeOf ()
Returns the size of information stored (size of byte stream in this case)
Err BytesMsgField::WriteToFile (File *aFile)
Kratky_komentar_s_teckou_na_konci

Public

methods
virtual Field* CreateCopy ()
"Copy constructor"
virtual Size SizeOf ()
Total size

Store value

Get and set value

Inherited from MsgField:

Public Methods

Void* MsgField::CreateCopyOfValue()
Int MsgField::EqualTo(MsgField *aMsgField)
Err MsgField::GetAsID( ID *t)
Char* MsgField::GetAsString()
MsgField::MsgField(Char *aFieldName, LogFile *aLogFile)
MsgField* MsgField::NewMsgField(Size aSize, Char *aFieldName, LogFile *aLogFile)
Err MsgField::SetAsString(Char *aString)
Err MsgField::SetValue(Void *aBuffer, Size aSize)
MsgField::~MsgField()

Protected

attributes

Void* value
Stored value
Size size
Stored value size

Inherited from Field:

Public Methods

Field::Field(Char *aName, LogFile *aLogFile)
Char* Field::GetName()
Int Field::NameEqualTo(Char *aName)
Void Field::SetName(Char *aName)
Field::~Field()

Inherited from Debugable:

Public Methods

string* Debugable::CreateString(char *firstStr, int firstInt, int secondInt)
Debugable::Debugable(LogFile * debugLogFile)
int Debugable::SetDebugOptions(int newLogOptions)
void Debugable::SetLogFile(LogFile *aLogFile)
void Debugable::WriteString(LogLevel debugLevel, char * format, ...)
Debugable::~Debugable()

Documentation

Bytes message field. Stores the field information as a byte stream.
methods

virtual Field* CreateCopy()
"Copy constructor"

virtual Size SizeOf()
Total size

Store value

Get and set value

BytesMsgField::BytesMsgField(Char *aFieldName, Void *aBuffer, Size aSize, LogFile *aLogFile)
BytesMsgField constructor. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Pavel
See Also:
co_se_toho_tyka

Field* BytesMsgField::CreateCopy()
Returns copy of itself. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Pavel
See Also:
co_se_toho_tyka

Void* BytesMsgField::GetAsBytes(Size *aSize)
Returns a copy of the stored information as a byte stream. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Pavel
See Also:
co_se_toho_tyka

Err BytesMsgField::GetAsFile(Char *aFileName)
Stores the information in a file "aFileName". Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Pavel
See Also:
co_se_toho_tyka

GMessage* BytesMsgField::GetAsGMessage()
This is used for unnesting a nested GMessage. There has to be a call to this method when you want to acces the nested information. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Pavel
See Also:
co_se_toho_tyka

Err BytesMsgField::ReadFromFile(File *aFile, Size aSize)
Reads "aSize" bytes from "aFile" to "value" and "size". This is used when retrieving the information from a file. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Pavel
See Also:
co_se_toho_tyka

Err BytesMsgField::SetAsBytes(Void *aBuffer, Size aSize)
Gets (and stores) the information from a byte stream. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Pavel
See Also:
co_se_toho_tyka

Err BytesMsgField::SetAsFile(Char *aFileName)
Gets (and stores) the information from a file. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Pavel
See Also:
co_se_toho_tyka

Size BytesMsgField::SizeOf()
Returns the size of information stored (size of byte stream in this case). Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Pavel
See Also:
co_se_toho_tyka

Err BytesMsgField::WriteToFile(File *aFile)
Kratky_komentar_s_teckou_na_konci. Writes "size" bytes from "value" to "aFile". This is used to store the whole GMessage into a file or when storing a MsgField to a Table.
Returns:
co
Parameters:
parametr -
Author:
Pavel
See Also:
co_se_toho_tyka


This class has no child classes.
Author:
Pavel
See Also:
co_se_toho_tyka

alphabetic index hierarchy of classes


generated by doc++