GlobalObjects
|
Base class for string-, integer- and double-container attributes of a Record. More...
#include <GloTypeLotRecordAttribute.h>
Public Member Functions | |
TypeLotRecordAttribute (ClassInfoAttribute *pType, const std::streampos &rFilePos) | |
virtual void | addValue (const std::string rsValue)=0 |
virtual int | takeValue (const BaseRecordAttribute &rT) |
bool | operator== (const TypeLotRecordAttribute &rT) const |
Comparison operator. | |
bool | operator!= (const TypeLotRecordAttribute &rT) const |
Comparison operator. | |
Public Member Functions inherited from glo::LotRecordAttribute | |
LotRecordAttribute (ClassInfoAttribute *pType, const std::streampos &rFilePos) | |
virtual void | clearValueLot ()=0 |
virtual bool | dataIsFieldContent () const |
virtual int | getAttributeValueBlob (eut::Blob &rBlob) const |
virtual unsigned short | getDataFieldLength () const |
virtual std::string | getDataReference () const |
const std::string & | getFileName () const |
virtual int | getFormattedFieldContents (std::string &rsRetVal, DATA_REFERENCE_INFO &rRetValInfo, ObjID ObjID) |
virtual std::string | getValueAsDataString () const |
virtual std::string | getValueAsDisplayString () const |
virtual std::string | getValueAsStreamString () const |
virtual std::string | getValueAsString () const |
virtual std::size_t | getValueSize () const =0 |
virtual void | initNew () |
void | setDeterminedFileNameFromAttributeValue (ObjID ObjID) |
void | setFileName (const std::string &rsFileName) |
virtual int | updateDataReference (const std::string &rsDataPath, DATA_REFERENCE_INFO MethodInfo) |
bool | operator== (const LotRecordAttribute &rT) const |
Comparison operator. | |
bool | operator!= (const LotRecordAttribute &rT) const |
Comparison operator. | |
Public Member Functions inherited from glo::BaseRecordAttribute | |
BaseRecordAttribute (ClassInfoAttribute *pClassInfoAttribut, const std::streampos &rFilePos) | |
virtual | ~BaseRecordAttribute () |
unsigned int | forget () |
AttributeID | getAttributeID () const |
ClassInfoAttribute * | getClassInfoAttribute () const |
std::string | getClassMemberName () const |
std::string | getClassName () const |
virtual BaseRecordAttribute * | getCopy ()=0 |
EnDataType | getDataType () const |
std::string | getFieldName () const |
int | getFieldPos () |
std::streampos | getFilePosition () const |
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 void * | getValueAsVoidPointer ()=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 |
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 | |
TypeLotRecordAttribute () | |
TypeLotRecordAttribute (const TypeLotRecordAttribute &rT) | |
virtual | ~TypeLotRecordAttribute () |
Protected Member Functions inherited from glo::LotRecordAttribute | |
LotRecordAttribute () | |
LotRecordAttribute (const LotRecordAttribute &rT) | |
virtual | ~LotRecordAttribute () |
virtual void | streamValueListInFileStream (std::ofstream &rFileStream)=0 |
Protected Member Functions inherited from glo::BaseRecordAttribute | |
BaseRecordAttribute () | |
BaseRecordAttribute (const BaseRecordAttribute &rT) | |
Private Member Functions | |
TypeLotRecordAttribute & | operator= (const TypeLotRecordAttribute &) |
Additional Inherited Members | |
Protected Attributes inherited from glo::LotRecordAttribute | |
std::string | m_sFileName |
Base class for string-, integer- and double-container attributes of a Record.
|
protected |
The standard constructor is not available.
|
protectedvirtual |
The destructor is not available. The object may only be removed from memory using forget().
glo::TypeLotRecordAttribute::TypeLotRecordAttribute | ( | ClassInfoAttribute * | pType, |
const std::streampos & | rFilePos ) |
Constructor with parameter passing.
[in] | pType | A class information attribute is expected. |
[in] | rFilePos | The file position. |
eut::ErrorNException | An exception will be thrown if an error occurs. |
|
protected |
Copy constructor.
[in] | rT | The data is copied from this object. |
|
pure virtual |
In subclasses, inserts passed value at the end of the container, which is passed as a string. It is converted to the correct type in the subclasses.
Is used to ensure socket transmission, because it works with strings.
[in] | rsValue | The value to insert. |
Implemented in glo::DoubleLotRecordAttribute, glo::IntLotRecordAttribute, glo::StringListRecordAttribute, glo::StringSetRecordAttribute, and glo::StringVectorRecordAttribute.
bool glo::TypeLotRecordAttribute::operator!= | ( | const TypeLotRecordAttribute & | rT | ) | const |
Comparison operator.
[in] | rT | The object to be compared with this one. |
|
private |
The assignment operator is not available.
bool glo::TypeLotRecordAttribute::operator== | ( | const TypeLotRecordAttribute & | rT | ) | const |
Comparison operator.
[in] | rT | The object to be compared with this one. |
|
virtual |
Adopts the value from transferred attribute in the subclasses, if possible. In this method, an error is generated for data types that cannot be casted by the subclasses.
[in] | rT | The persistent attribute from which the values are to be taken. |
Reimplemented from glo::BaseRecordAttribute.
Reimplemented in glo::DoubleListRecordAttribute, glo::DoubleLotRecordAttribute, glo::DoubleSetRecordAttribute, glo::DoubleVectorRecordAttribute, glo::IntListRecordAttribute, glo::IntLotRecordAttribute, glo::IntSetRecordAttribute, glo::IntVectorRecordAttribute, glo::StringListRecordAttribute, glo::StringLotRecordAttribute, glo::StringSetRecordAttribute, and glo::StringVectorRecordAttribute.