Superclass for ObjID and ObjID reference attributes of a Record.
More...
#include <GloIDRecordAttribute.h>
|
| 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 ObjID & | getValueRef () 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.
|
|
| BaseRecordAttribute (ClassInfoAttribute *pClassInfoAttribut, const std::streampos &rFilePos) |
|
virtual | ~BaseRecordAttribute () |
|
unsigned int | forget () |
|
AttributeID | getAttributeID () const |
|
virtual int | getAttributeValueBlob (eut::Blob &rBlob) const |
|
ClassInfoAttribute * | getClassInfoAttribute () const |
|
std::string | getClassMemberName () const |
|
std::string | getClassName () const |
|
virtual BaseRecordAttribute * | getCopy ()=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 |
|
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 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.
|
|
Superclass for ObjID and ObjID reference attributes of a Record.
- Copyright
- © 2010 Helmut Jakoby
- Author
- Helmut Jakoby
◆ IDRecordAttribute() [1/4]
glo::IDRecordAttribute::IDRecordAttribute |
( |
| ) |
|
|
protected |
The standard constructor is not available.
◆ ~IDRecordAttribute()
virtual glo::IDRecordAttribute::~IDRecordAttribute |
( |
| ) |
|
|
protectedvirtual |
The destructor is not available. The object may only be removed from memory using forget().
◆ IDRecordAttribute() [2/4]
glo::IDRecordAttribute::IDRecordAttribute |
( |
ClassInfoAttribute * | pType, |
|
|
const std::streampos & | rFilePos ) |
Constructor with parameter passing.
- Parameters
-
[in] | pType | A class information attribute is expected. |
[in] | rFilePos | The file position. |
- Exceptions
-
- 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!
◆ IDRecordAttribute() [3/4]
glo::IDRecordAttribute::IDRecordAttribute |
( |
ClassInfoAttribute * | pType, |
|
|
ObjID | Value, |
|
|
const std::streampos & | rFilePos ) |
Constructor with parameter passing.
- Parameters
-
[in] | pType | A class information attribute is expected. |
[in] | Value | The value of the attribute. |
[in] | rFilePos | The file position. |
- Exceptions
-
- 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!
◆ IDRecordAttribute() [4/4]
Copy constructor.
- Parameters
-
[in] | rT | The data is copied from this object. |
◆ dataIsFieldContent()
virtual bool glo::IDRecordAttribute::dataIsFieldContent |
( |
| ) |
const |
|
virtual |
Returns true, because the attribute data is stored as field content.
- Returns
- see above
Implements glo::BaseRecordAttribute.
◆ getDataFieldLength()
virtual unsigned short glo::IDRecordAttribute::getDataFieldLength |
( |
| ) |
const |
|
virtual |
◆ getValueAsDataString()
virtual std::string glo::IDRecordAttribute::getValueAsDataString |
( |
| ) |
const |
|
virtual |
Returns the value as a formatted data string with the correct length with the correct length for the entry in the table file.
- Returns
- The value as formatted data string.
Implements glo::BaseRecordAttribute.
◆ getValueAsDisplayString()
virtual std::string glo::IDRecordAttribute::getValueAsDisplayString |
( |
| ) |
const |
|
virtual |
Returns the value as it can be displayed for the GUI.
- Returns
- The value for the display.
Implements glo::BaseRecordAttribute.
◆ getValueAsStreamString()
virtual std::string glo::IDRecordAttribute::getValueAsStreamString |
( |
| ) |
const |
|
virtual |
◆ getValueAsString() [1/2]
virtual std::string glo::IDRecordAttribute::getValueAsString |
( |
| ) |
const |
|
virtual |
◆ getValueAsString() [2/2]
std::string glo::IDRecordAttribute::getValueAsString |
( |
const ObjID & | rValue | ) |
const |
Returns a ObjID as a string according to the length specified in its class information attribute.
- Parameters
-
[in] | rValue | The ObjID to be delivered as a string. |
- Returns
- The resulting string.
◆ getValueAsVoidPointer()
virtual void * glo::IDRecordAttribute::getValueAsVoidPointer |
( |
| ) |
|
|
virtual |
◆ getValueRef()
const ObjID & glo::IDRecordAttribute::getValueRef |
( |
| ) |
const |
Returns the reference to the value.
- Returns
- The value.
◆ initNew()
virtual void glo::IDRecordAttribute::initNew |
( |
| ) |
|
|
virtual |
◆ operator!=()
Comparison operator, all attributes are compared.
- Parameters
-
[in] | rT | The object to be compared with this one. |
◆ operator=()
The assignment operator is not available.
◆ operator==()
Comparison operator, all attributes are compared.
- Parameters
-
[in] | rT | The object to be compared with this one. |
◆ setValue()
virtual void glo::IDRecordAttribute::setValue |
( |
ObjID | Value | ) |
|
|
virtual |
◆ setValueFromVoid()
virtual void glo::IDRecordAttribute::setValueFromVoid |
( |
void * | pValue | ) |
|
|
virtual |
◆ takeValue()
Adopts the value from transferred attribute, if possible. An attempt is made to cast the value in some way.
- Parameters
-
[in] | rT | The persistent attribute from which the values are to be taken. |
- Returns
- An error or warning message from subclasses will be delivered if the cast does not work.
Reimplemented from glo::BaseRecordAttribute.
◆ m_Value
ObjID glo::IDRecordAttribute::m_Value |
|
private |
The value of the attribute.
The documentation for this class was generated from the following file: