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

class BytesField : public TableField

Table field

Inheritance:

BytesField < TableField < Field < Debugable


Public Methods

Char* BytesField::AsString ()
Returns string representation of the value
BytesField::BytesField (Char *aName, MsgField *aValue, LogFile *aLogFile)
Constructor of StringField
Field* BytesField::CreateCopy ()
Returns identical object
Int BytesField::EqualTo (void *aValue)
This field does NOT SUPPORT SEARCHING YET - has to be able
GMessage* BytesField::GetAsGMessage ()
Gets contents of this BytesField as a GMessage
MsgField* BytesField::GetAsMsgField ()
Gets contents of this BytesField as a MsgField
Err BytesField::ReadFromFile (File *aFile, Size *bytesToEORec)
Reads the contents of a field stored in a file
Err BytesField::SetAsGMessage (GMessage *aGMessage)
Enables simple storage of MsgField
Err BytesField::SetAsMsgField (MsgField *aMsgField)
Enables simple storage of GMessage
Err BytesField::SetValue (Void *aValue)
Sets the "value" to "*aValue"
Size BytesField::SizeOf ()
Returns size of string representation of value
Err BytesField::WriteToFile (File *aFile)
Writes the contents of a MsgField "value" to an open file
BytesField::~BytesField ()
Destructor of StringField

Public

methods
BytesField (Char *aName, MsgField *aValue = NULL, LogFile *aLogFile = NULL)
constructor
virtual ~BytesField ()
destructor
virtual Field* CreateCopy ()
"copy constructor"
virtual char* Print ()
debugging
virtual Int EqualTo (void *aValue)
data checking
virtual Size SizeOf ()
Total size
virtual Int IsFixed ()
has fixed size ?
GMessage* GetAsGMessage ()
Return value as GMessage
MsgField* GetAsMsgField ()
Return value as MsgField
Err SetAsGMessage (GMessage *aGMessage)
Set value from GMessage
Err SetAsMsgField (MsgField *aMsgField)
Set value from MsgField
virtual Err SetValue (Void *aValue)
conversions
virtual Err ReadFromFile (File *aFile, Size *bytesToEORec)
Read field from file
virtual Err WriteToFile (File *aFile)
Write field to file
virtual Char* AsString ()
other conversions

Protected

attributes
MsgField* value
Stored value

Inherited from TableField:


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

Table field. TableField, that holds an array of bytes in format
attributes

MsgField* value
Stored value

methods

BytesField(Char *aName, MsgField *aValue = NULL, LogFile *aLogFile = NULL)
constructor

virtual ~BytesField()
destructor

virtual Field* CreateCopy()
"copy constructor"

virtual char* Print()
debugging

virtual Int EqualTo(void *aValue)
data checking

virtual Size SizeOf()
Total size

virtual Int IsFixed()
has fixed size ?

GMessage* GetAsGMessage()
Return value as GMessage

MsgField* GetAsMsgField()
Return value as MsgField

Err SetAsGMessage(GMessage *aGMessage)
Set value from GMessage

Err SetAsMsgField(MsgField *aMsgField)
Set value from MsgField

virtual Err SetValue(Void *aValue)
conversions

virtual Err ReadFromFile(File *aFile, Size *bytesToEORec)
Read field from file

virtual Err WriteToFile(File *aFile)
Write field to file

virtual Char* AsString()
other conversions

Char* BytesField::AsString()
Returns string representation of the value. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Marek, Pavel
See Also:
co_se_toho_tyka

BytesField::BytesField(Char *aName, MsgField *aValue, LogFile *aLogFile)
Constructor of StringField. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Marek, Pavel
See Also:
co_se_toho_tyka

Field* BytesField::CreateCopy()
Returns identical object. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Marek, Pavel
See Also:
co_se_toho_tyka

Int BytesField::EqualTo(void *aValue)
This field does NOT SUPPORT SEARCHING YET - has to be able. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Marek, Pavel
See Also:
co_se_toho_tyka

GMessage* BytesField::GetAsGMessage()
Gets contents of this BytesField as a GMessage. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Marek, Pavel
See Also:
co_se_toho_tyka

MsgField* BytesField::GetAsMsgField()
Gets contents of this BytesField as a MsgField. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Marek, Pavel
See Also:
co_se_toho_tyka

Err BytesField::ReadFromFile(File *aFile, Size *bytesToEORec)
Reads the contents of a field stored in a file. ACCEPTS reading an empty value. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Marek, Pavel
See Also:
co_se_toho_tyka

Err BytesField::SetAsGMessage(GMessage *aGMessage)
Enables simple storage of MsgField. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Marek, Pavel
See Also:
co_se_toho_tyka

Err BytesField::SetAsMsgField(MsgField *aMsgField)
Enables simple storage of GMessage. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Marek, Pavel
See Also:
co_se_toho_tyka

Err BytesField::SetValue(Void *aValue)
Sets the "value" to "*aValue". Counts with MsgField!! Accepts only NOT NULL value, MsgField can be empty. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Marek, Pavel
See Also:
co_se_toho_tyka

Size BytesField::SizeOf()
Returns size of string representation of value. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Marek, Pavel
See Also:
co_se_toho_tyka

Err BytesField::WriteToFile(File *aFile)
Writes the contents of a MsgField "value" to an open file. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Marek, Pavel
See Also:
co_se_toho_tyka

BytesField::~BytesField()
Destructor of StringField. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Marek, Pavel
See Also:
co_se_toho_tyka


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

alphabetic index hierarchy of classes


generated by doc++