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

class TimeField : public TableField

Time field

Inheritance:

TimeField < TableField < Field < Debugable


Public Methods

Char* TimeField::AsString ()
Returns string representation of the value
Field* TimeField::CreateCopy ()
Returns identical object
Int TimeField::EqualTo (void *aValue)
Decides if the value is equal to the parameter
ESTime TimeField::GetESTimeValue ()
Returns the value as Time (usage: time = TimeField->GetESTimeValue()
RelTime TimeField::GetRelTimeValue ()
Returns the value as Time (usage: time = TimeField->GetRelTimeValue()
Err TimeField::ReadFromFile (File *aFile, Size *bytesToEORec)
Reads the value froma file
Err TimeField::SetValue (Void *aValue)
Sets the "value" to "*aValue"
Size TimeField::SizeOf ()
Returns size of string represening the value
TimeField::TimeField (Char *aName, BasicTime *aValue, LogFile *aLogFile)
Constructor of TimeField
TimeField::TimeField (Char *aName, TIME_REPREZ aValue, LogFile *aLogFile)
Special constructor of TimeField
Err TimeField::WriteToFile (File *aFile)
Writes the value to a File

Public

methods
TimeField (Char *aName, BasicTime *aValue = NULL, LogFile *aLogFile = NULL)
constructor
TimeField (Char *aName, TIME_REPREZ aValue, LogFile *aLogFile = NULL)
constructor
virtual ~TimeField ()
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 ?
ESTime GetESTimeValue ()
return stored value
RelTime GetRelTimeValue ()
return stored value
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
TIME_REPREZ 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

Time field. TableField, that holds Time value
attributes

TIME_REPREZ value
Stored value

methods

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

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

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

ESTime GetESTimeValue()
return stored value

RelTime GetRelTimeValue()
return stored value

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

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

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

ESTime TimeField::GetESTimeValue()
Returns the value as Time (usage: time = TimeField->GetESTimeValue(). Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Marek, Pavel
See Also:
co_se_toho_tyka

RelTime TimeField::GetRelTimeValue()
Returns the value as Time (usage: time = TimeField->GetRelTimeValue(). Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Marek, Pavel
See Also:
co_se_toho_tyka

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

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

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

TimeField::TimeField(Char *aName, BasicTime *aValue, LogFile *aLogFile)
Constructor of TimeField. 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

TimeField::TimeField(Char *aName, TIME_REPREZ aValue, LogFile *aLogFile)
Special constructor of TimeField. Dlouhy_komentar
Returns:
co
Parameters:
parametr -
Author:
Marek, Pavel
See Also:
co_se_toho_tyka

Err TimeField::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++