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

class IDField : public TableField

ID field

Inheritance:

IDField < TableField < Field < Debugable


Public Methods

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

Public

methods
IDField (Char *aName, ID aValue = 0, LogFile *aLogFile = NULL)
constructor
virtual ~IDField ()
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 ?
Err GetID (ID *anID)
Return stored valued
ID GetIDValue ()
Return stored valued
virtual Err ReadFromFile (File *aFile, Size *bytesToEORec)
Read field from file
virtual Err WriteToFile (File *aFile)
Write field to file

Protected

attributes
ID 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

ID field. TableField, that holds ID value
attributes

ID value
stored value

methods

IDField(Char *aName, ID aValue = 0, LogFile *aLogFile = NULL)
constructor

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

Err GetID(ID *anID)
Return stored valued

ID GetIDValue()
Return stored valued

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

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

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

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

Int IDField::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 IDField::GetID(ID *anID)
Returns value as an ID. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Marek, Pavel
See Also:
co_se_toho_tyka

IDField::IDField(Char *aName, ID aValue, LogFile *aLogFile)
Constructor of IDField. This file contains the Field, IntField, StringField and FixedStringField 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 IDField::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 IDField::SetValue(Void *aValue)
Sets the "value" to "*aValue". Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Marek, Pavel
See Also:
co_se_toho_tyka

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

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


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

alphabetic index hierarchy of classes


generated by doc++