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

class StringField : public TableField

String field

Inheritance:

StringField < TableField < Field < Debugable


Public Methods

Char* StringField::AsString ()
Returns string representation of the value
Field* StringField::CreateCopy ()
Returns identical object
Int StringField::EqualTo (void *aValue)
Decides if the value is equal to the parameter
Err StringField::ReadFromFile (File *aFile, Size *bytesToEORec)
Reads the value from a file
Err StringField::SetValue (Void *aValue)
Sets the "value" to "*aValue"
Size StringField::SizeOf ()
Returns size of string representation of value
StringField::StringField (Char *aName, Char *aValue, LogFile *aLogFile)
Constructor of StringField
Err StringField::WriteToFile (File *aFile)
Writes the value to a file
StringField::~StringField ()
Destructor of StringField

Public

methods
StringField (Char *aName, Char *aValue = NULL, LogFile *aLogFile = NULL)
constructor
virtual ~StringField ()
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 ?
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

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

String field. TableField, that holds Char* value
attributes

methods

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

virtual ~StringField()
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 ?

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* StringField::AsString()
Returns string representation of the value. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Marek, Pavel
See Also:
co_se_toho_tyka

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

Int StringField::EqualTo(void *aValue)
Decides if the value is equal to the parameter. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Marek, Pavel
See Also:
co_se_toho_tyka

Err StringField::ReadFromFile(File *aFile, Size *bytesToEORec)
Reads the value from a file. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Marek, Pavel
See Also:
co_se_toho_tyka

Err StringField::SetValue(Void *aValue)
Sets the "value" to "*aValue". Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Marek, Pavel
See Also:
co_se_toho_tyka

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

StringField::StringField(Char *aName, Char *aValue, LogFile *aLogFile)
Constructor of StringField. Description: This file contains the Field, IntField, StringField classes which are used for inserting and retrieving information into/from a Record.
Returns:
co
Parameters:
parametr -
Author:
Marek, Pavel
See Also:
co_se_toho_tyka

Err StringField::WriteToFile(File *aFile)
Writes the value to a file. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Marek, Pavel
See Also:
co_se_toho_tyka

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


Direct child classes:
FixedStringField
Author:
Marek, Pavel
See Also:
co_se_toho_tyka

alphabetic index hierarchy of classes


generated by doc++