GlobalObjects
Loading...
Searching...
No Matches
glo::FNumRecordAttribute Class Reference

Represents as superclass all floating point number attributes of a persistent object. More...

#include <GloFNumRecordAttribute.h>

Inheritance diagram for glo::FNumRecordAttribute:

Public Member Functions

 FNumRecordAttribute (ClassInfoAttribute *pType, const std::streampos &rFilePos)
 
template<typename T >
std::string getTValueAsString (const T &rTValue, bool bFillBlanks) const
 
bool operator== (const FNumRecordAttribute &rT) const
 Comparison operator, all attributes are compared.
 
bool operator!= (const FNumRecordAttribute &rT) const
 Comparison operator, all attributes are compared.
 
- Public Member Functions inherited from glo::BaseRecordAttribute
 BaseRecordAttribute (ClassInfoAttribute *pClassInfoAttribut, const std::streampos &rFilePos)
 
virtual ~BaseRecordAttribute ()
 
virtual bool dataIsFieldContent () const =0
 
unsigned int forget ()
 
AttributeID getAttributeID () const
 
virtual int getAttributeValueBlob (eut::Blob &rBlob) const
 
ClassInfoAttributegetClassInfoAttribute () const
 
std::string getClassMemberName () const
 
std::string getClassName () const
 
virtual BaseRecordAttributegetCopy ()=0
 
virtual unsigned short getDataFieldLength () const =0
 
virtual std::string getDataReference () const
 
EnDataType getDataType () const
 
std::string getFieldName () const
 
int getFieldPos ()
 
std::streampos getFilePosition () const
 
virtual int getFormattedFieldContents (std::string &rsRetVal, DATA_REFERENCE_INFO &rRetValInfo, ObjID ObjID)
 
EnDataTypeGroup getInfoType ()
 
unsigned int getReferenceCount () const
 
std::string getTableFieldName () const
 
std::string getTableName () const
 
ClassInfoAttribute::Type getType () const
 
std::string getTypeAsCppString () const
 
std::string getTypeAsString () const
 
std::string getTypeInfo () const
 
virtual std::string getValueAsDataString () const =0
 
virtual std::string getValueAsDisplayString () const =0
 
virtual std::string getValueAsStreamString () const =0
 
virtual std::string getValueAsString () const =0
 
virtual void * getValueAsVoidPointer ()=0
 
virtual void initNew ()=0
 
unsigned int remember ()
 
virtual void setDataReference (const std::string &rsDataReference)
 
void setFilePosition (const std::streampos &rFilePos)
 
virtual int setValueFromObjectAttributeID (Persistent &rObject, const AttributeID &rAttributeID)
 
virtual void setValueFromVoid (void *pValue)=0
 
virtual int takeValue (const BaseRecordAttribute &rT)
 
virtual int updateDataReference (const std::string &rsDataPath, DATA_REFERENCE_INFO MethodInfo)
 
bool operator== (const BaseRecordAttribute &rT) const
 Comparison operator, all attributes are compared.
 
bool operator!= (const BaseRecordAttribute &rT) const
 Comparison operator, all attributes are compared.
 

Protected Member Functions

 FNumRecordAttribute ()
 
 FNumRecordAttribute (const FNumRecordAttribute &rT)
 
virtual ~FNumRecordAttribute ()
 
- Protected Member Functions inherited from glo::BaseRecordAttribute
 BaseRecordAttribute ()
 
 BaseRecordAttribute (const BaseRecordAttribute &rT)
 

Private Member Functions

FNumRecordAttributeoperator= (const FNumRecordAttribute &)
 

Detailed Description

Represents as superclass all floating point number attributes of a persistent object.

Author
Helmut Jakoby

Constructor & Destructor Documentation

◆ FNumRecordAttribute() [1/3]

glo::FNumRecordAttribute::FNumRecordAttribute ( )
protected

The standard constructor is not available.

◆ ~FNumRecordAttribute()

virtual glo::FNumRecordAttribute::~FNumRecordAttribute ( )
protectedvirtual

The destructor is not available. The object may only be removed from memory using forget().

◆ FNumRecordAttribute() [2/3]

glo::FNumRecordAttribute::FNumRecordAttribute ( ClassInfoAttribute * pType,
const std::streampos & rFilePos )

Constructor with parameter passing.

Parameters
[in]pTypeA class information attribute is expected.
[in]rFilePosThe file position.
Exceptions
eut::ErrorNExceptionAn exception will be thrown if an error occurs.
Attention
Since objects of these classes are only instantiated by internal objects like Record and TableReaderInterface, and they know what they are doing, a type check of the class information attribute is omitted!

◆ FNumRecordAttribute() [3/3]

glo::FNumRecordAttribute::FNumRecordAttribute ( const FNumRecordAttribute & rT)
protected

The copy constructor is not available.

See also
getCopy()

Member Function Documentation

◆ getTValueAsString()

template<typename T >
std::string glo::FNumRecordAttribute::getTValueAsString ( const T & rTValue,
bool bFillBlanks ) const

Returns a value as a string according to the length specified in its class information attribute.

Parameters
[in]rTValueThe value to be transformed into a string.
[in]bFillBlanksIf true, missing characters are filled with blanks.
Returns
The resulting string.

◆ operator!=()

bool glo::FNumRecordAttribute::operator!= ( const FNumRecordAttribute & rT) const

Comparison operator, all attributes are compared.

Parameters
[in]rTThe object to be compared with this one.

◆ operator=()

FNumRecordAttribute & glo::FNumRecordAttribute::operator= ( const FNumRecordAttribute & )
private

The assignment operator is not available.

◆ operator==()

bool glo::FNumRecordAttribute::operator== ( const FNumRecordAttribute & rT) const

Comparison operator, all attributes are compared.

Parameters
[in]rTThe object to be compared with this one.

The documentation for this class was generated from the following file: