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

Base class for different string-container attributes of a Record. More...

#include <GloStringLotRecordAttribute.h>

Inheritance diagram for glo::StringLotRecordAttribute:

Public Member Functions

 StringLotRecordAttribute (ClassInfoAttribute *pType, const std::streampos &rFilePos)
 
virtual int takeValue (const BaseRecordAttribute &rT)
 
bool operator== (const StringLotRecordAttribute &rT) const
 Comparison operator.
 
bool operator!= (const StringLotRecordAttribute &rT) const
 Comparison operator.
 
- Public Member Functions inherited from glo::TypeLotRecordAttribute
 TypeLotRecordAttribute (ClassInfoAttribute *pType, const std::streampos &rFilePos)
 
virtual void addValue (const std::string rsValue)=0
 
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

 StringLotRecordAttribute ()
 
 StringLotRecordAttribute (const StringLotRecordAttribute &rT)
 
virtual ~StringLotRecordAttribute ()
 
- Protected Member Functions inherited from glo::TypeLotRecordAttribute
 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

StringLotRecordAttributeoperator= (const StringLotRecordAttribute &)
 

Additional Inherited Members

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

Detailed Description

Base class for different string-container attributes of a Record.

Author
Helmut Jakoby

Constructor & Destructor Documentation

◆ StringLotRecordAttribute() [1/3]

glo::StringLotRecordAttribute::StringLotRecordAttribute ( )
protected

The standard constructor is not available.

◆ ~StringLotRecordAttribute()

virtual glo::StringLotRecordAttribute::~StringLotRecordAttribute ( )
protectedvirtual

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

◆ StringLotRecordAttribute() [2/3]

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

◆ StringLotRecordAttribute() [3/3]

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

Copy constructor.

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

Member Function Documentation

◆ operator!=()

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

Comparison operator.

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

◆ operator=()

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

The assignment operator is not available.

◆ operator==()

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

Comparison operator.

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

◆ takeValue()

virtual int glo::StringLotRecordAttribute::takeValue ( const BaseRecordAttribute & rT)
virtual

Adopts the value from transferred attribute, if possible. An attempt is made to cast the value in some way.

All non-string containers are processed in this method.

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::TypeLotRecordAttribute.

Reimplemented in glo::StringListRecordAttribute, glo::StringSetRecordAttribute, and glo::StringVectorRecordAttribute.


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