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

Represents as superclass all integer attributes of a Record. More...

#include <GloINumRecordAttribute.h>

Inheritance diagram for glo::INumRecordAttribute:

Public Member Functions

 INumRecordAttribute (ClassInfoAttribute *pType, const std::streampos &rFilePos)
 
template<typename T >
std::string getTValueAsString (const T &rTValue, bool bFillBlanks) const
 
bool operator== (const INumRecordAttribute &rT) const
 Comparison operator, all attributes are compared.
 
bool operator!= (const INumRecordAttribute &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

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

Private Member Functions

INumRecordAttributeoperator= (const INumRecordAttribute &)
 

Detailed Description

Represents as superclass all integer attributes of a Record.

Author
Helmut Jakoby

Constructor & Destructor Documentation

◆ INumRecordAttribute() [1/3]

glo::INumRecordAttribute::INumRecordAttribute ( )
protected

The standard constructor is not available.

◆ ~INumRecordAttribute()

virtual glo::INumRecordAttribute::~INumRecordAttribute ( )
protectedvirtual

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

◆ INumRecordAttribute() [2/3]

glo::INumRecordAttribute::INumRecordAttribute ( 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!

◆ INumRecordAttribute() [3/3]

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

Copy constructor.

Parameters
[in]rTThe data is copied from this object.
See also
getCopy()

Member Function Documentation

◆ getTValueAsString()

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

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

Parameters
[in]rTValueThe value to be delivered as string.
[in]bFillBlanksIf true, missing characters at the front are filled with blanks.
Returns
The resulting string.

◆ operator!=()

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

Comparison operator, all attributes are compared.

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

◆ operator=()

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

The assignment operator is not available.

◆ operator==()

bool glo::INumRecordAttribute::operator== ( const INumRecordAttribute & 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: