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

class IntField : public TableField

Int filed

Inheritance:

IntField < TableField < Field < Debugable


Public Methods

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

Public

methods
IntField (Char *aName, Int aValue = 0, LogFile *aLogFile = NULL)
constructor
virtual ~IntField ()
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?
Int GetIntValue ()
Return the stored int
virtual Err SetValue (Void *aValue)
conversion
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
Int 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

Int filed. TableField, that holds int value.
attributes

Int value
stored value

methods

IntField(Char *aName, Int aValue = 0, LogFile *aLogFile = NULL)
constructor

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

Int GetIntValue()
Return the stored int

virtual Err SetValue(Void *aValue)
conversion

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

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

Int IntField::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

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

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

Err IntField::WriteToFile(File *aFile)
Writes the value to a file. 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++