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

A class for the object ID attributes of a Record. Represents an attribute of type 'ObjID'. More...

#include <GloObjIDRecordAttribute.h>

Inheritance diagram for glo::ObjIDRecordAttribute:

Public Member Functions

 ObjIDRecordAttribute (ClassInfoAttribute *pType, const std::streampos &rFilePos)
 
 ObjIDRecordAttribute (ClassInfoAttribute *pType, ObjID Value, const std::streampos &rFilePos)
 
virtual BaseRecordAttributegetCopy ()
 
virtual int setValueFromObjectAttributeID (Persistent &rObject, const AttributeID &rAttributeID)
 
bool operator== (const ObjIDRecordAttribute &rT) const
 Comparison operator, all attributes are compared.
 
bool operator!= (const ObjIDRecordAttribute &rT) const
 Comparison operator, all attributes are compared.
 
- Public Member Functions inherited from glo::IDRecordAttribute
 IDRecordAttribute (ClassInfoAttribute *pType, const std::streampos &rFilePos)
 
 IDRecordAttribute (ClassInfoAttribute *pType, ObjID Value, const std::streampos &rFilePos)
 
virtual bool dataIsFieldContent () const
 
virtual unsigned short getDataFieldLength () const
 
virtual std::string getValueAsDataString () const
 
virtual std::string getValueAsDisplayString () const
 
virtual std::string getValueAsStreamString () const
 
virtual std::string getValueAsString () const
 
std::string getValueAsString (const ObjID &rValue) const
 
virtual void * getValueAsVoidPointer ()
 
const ObjIDgetValueRef () const
 
virtual void initNew ()
 
virtual void setValue (ObjID Value)
 
virtual void setValueFromVoid (void *pValue)
 
virtual int takeValue (const BaseRecordAttribute &rT)
 
bool operator== (const IDRecordAttribute &rT) const
 Comparison operator, all attributes are compared.
 
bool operator!= (const IDRecordAttribute &rT) const
 Comparison operator, all attributes are compared.
 
- Public Member Functions inherited from glo::BaseRecordAttribute
 BaseRecordAttribute (ClassInfoAttribute *pClassInfoAttribut, const std::streampos &rFilePos)
 
virtual ~BaseRecordAttribute ()
 
unsigned int forget ()
 
AttributeID getAttributeID () const
 
virtual int getAttributeValueBlob (eut::Blob &rBlob) const
 
ClassInfoAttributegetClassInfoAttribute () const
 
std::string getClassMemberName () const
 
std::string getClassName () const
 
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
 
unsigned int remember ()
 
virtual void setDataReference (const std::string &rsDataReference)
 
void setFilePosition (const std::streampos &rFilePos)
 
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

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

Private Member Functions

ObjIDRecordAttributeoperator= (const ObjIDRecordAttribute &)
 

Detailed Description

A class for the object ID attributes of a Record. Represents an attribute of type 'ObjID'.

Author
Helmut Jakoby

Constructor & Destructor Documentation

◆ ObjIDRecordAttribute() [1/4]

glo::ObjIDRecordAttribute::ObjIDRecordAttribute ( )
protected

The standard constructor is not available.

◆ ~ObjIDRecordAttribute()

virtual glo::ObjIDRecordAttribute::~ObjIDRecordAttribute ( )
protectedvirtual

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

◆ ObjIDRecordAttribute() [2/4]

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

◆ ObjIDRecordAttribute() [3/4]

glo::ObjIDRecordAttribute::ObjIDRecordAttribute ( ClassInfoAttribute * pType,
ObjID Value,
const std::streampos & rFilePos )

Constructor with parameter passing.

Parameters
[in]pTypeA class information attribute is expected.
[in]ValueThe value of the attribute.
[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!

◆ ObjIDRecordAttribute() [4/4]

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

Copy constructor.

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

Member Function Documentation

◆ getCopy()

virtual BaseRecordAttribute * glo::ObjIDRecordAttribute::getCopy ( )
virtual

Returns a copy of the object. Sometimes a copy of an attribute is needed, e.g. if a deep-copied record (with copied attributes) is needed.

Returns
The copy of this attribute
Attention
The supplied object must be removed from memory by the calling instance.

Implements glo::BaseRecordAttribute.

◆ operator!=()

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

Comparison operator, all attributes are compared.

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

◆ operator=()

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

The assignment operator is not available.

◆ operator==()

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

Comparison operator, all attributes are compared.

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

◆ setValueFromObjectAttributeID()

virtual int glo::ObjIDRecordAttribute::setValueFromObjectAttributeID ( Persistent & rObject,
const AttributeID & rAttributeID )
virtual

It's overwritten here because nothing is supposed to happen.

Parameters
[in]rObjectNot used.
[in]rAttributeIDNot used.
Returns
return value always 0.

Reimplemented from glo::BaseRecordAttribute.


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