GlobalObjects
Loading...
Searching...
No Matches
glo::TypeLotRecordAttribute Class Referenceabstract

Base class for string-, integer- and double-container attributes of a Record. More...

#include <GloTypeLotRecordAttribute.h>

Inheritance diagram for glo::TypeLotRecordAttribute:

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
 
ClassInfoAttributegetClassInfoAttribute () const
 
std::string getClassMemberName () const
 
std::string getClassName () const
 
virtual BaseRecordAttributegetCopy ()=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

TypeLotRecordAttributeoperator= (const TypeLotRecordAttribute &)
 

Additional Inherited Members

- Protected Attributes inherited from glo::LotRecordAttribute
std::string m_sFileName
 

Detailed Description

Base class for string-, integer- and double-container attributes of a Record.

Author
Helmut Jakoby

Constructor & Destructor Documentation

◆ TypeLotRecordAttribute() [1/3]

glo::TypeLotRecordAttribute::TypeLotRecordAttribute ( )
protected

The standard constructor is not available.

◆ ~TypeLotRecordAttribute()

virtual glo::TypeLotRecordAttribute::~TypeLotRecordAttribute ( )
protectedvirtual

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

◆ TypeLotRecordAttribute() [2/3]

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

◆ TypeLotRecordAttribute() [3/3]

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

Copy constructor.

Parameters
[in]rTThe data is copied from this object.

Member Function Documentation

◆ addValue()

virtual void glo::TypeLotRecordAttribute::addValue ( const std::string rsValue)
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.

Parameters
[in]rsValueThe value to insert.

Implemented in glo::DoubleLotRecordAttribute, glo::IntLotRecordAttribute, glo::StringListRecordAttribute, glo::StringSetRecordAttribute, and glo::StringVectorRecordAttribute.

◆ operator!=()

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

Comparison operator.

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

◆ operator=()

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

The assignment operator is not available.

◆ operator==()

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

Comparison operator.

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

◆ takeValue()

virtual int glo::TypeLotRecordAttribute::takeValue ( const BaseRecordAttribute & rT)
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.

Parameters
[in]rTThe 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.

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.


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