Base class for different double-container attributes of a Record. More...
#include <GloDoubleLotRecordAttribute.h>
Public Member Functions | |
DoubleLotRecordAttribute (ClassInfoAttribute *pType, const std::streampos &rFilePos) | |
virtual void | addValue (const std::string rsValue) |
virtual void | addValue (double dValue)=0 |
virtual int | takeValue (const BaseRecordAttribute &rT) |
bool | operator== (const DoubleLotRecordAttribute &rT) const |
Comparison operator. | |
bool | operator!= (const DoubleLotRecordAttribute &rT) const |
Comparison operator. | |
![]() | |
TypeLotRecordAttribute (ClassInfoAttribute *pType, const std::streampos &rFilePos) | |
bool | operator== (const TypeLotRecordAttribute &rT) const |
Comparison operator. | |
bool | operator!= (const TypeLotRecordAttribute &rT) const |
Comparison operator. | |
![]() | |
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. | |
![]() | |
BaseRecordAttribute (ClassInfoAttribute *pClassInfoAttribut, const std::streampos &rFilePos) | |
virtual | ~BaseRecordAttribute () |
unsigned int | forget () |
AttributeID | getAttributeID () const |
unsigned long | getClassID () 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 | |
DoubleLotRecordAttribute () | |
DoubleLotRecordAttribute (const DoubleLotRecordAttribute &rT) | |
virtual | ~DoubleLotRecordAttribute () |
![]() | |
TypeLotRecordAttribute () | |
TypeLotRecordAttribute (const TypeLotRecordAttribute &rT) | |
virtual | ~TypeLotRecordAttribute () |
![]() | |
LotRecordAttribute () | |
LotRecordAttribute (const LotRecordAttribute &rT) | |
virtual | ~LotRecordAttribute () |
virtual void | streamValueListInFileStream (std::ofstream &rFileStream)=0 |
![]() | |
BaseRecordAttribute () | |
BaseRecordAttribute (const BaseRecordAttribute &rT) | |
Private Member Functions | |
DoubleLotRecordAttribute & | operator= (const DoubleLotRecordAttribute &) |
Additional Inherited Members | |
![]() | |
std::string | m_sFileName |
Base class for different double-container attributes of a Record.
|
protected |
The standard constructor is not available.
Referenced by DoubleLotRecordAttribute(), operator!=(), operator=(), and operator==().
|
protectedvirtual |
The destructor is not available. The object may only be removed from memory using forget().
glo::DoubleLotRecordAttribute::DoubleLotRecordAttribute | ( | 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. |
References DoubleLotRecordAttribute().
|
virtual |
Inserts the passed value at the end of the container, which is passed as a string. It is converted to a double.
Is used to ensure socket transmission, because it works with strings.
[in] | rsValue | The value to insert. |
Implements glo::TypeLotRecordAttribute.
|
pure virtual |
Inserts value passed in subclasses at the end of the container.
[in] | dValue | The value to be inserted. |
Implemented in glo::DoubleListRecordAttribute, glo::DoubleSetRecordAttribute, and glo::DoubleVectorRecordAttribute.
bool glo::DoubleLotRecordAttribute::operator!= | ( | const DoubleLotRecordAttribute & | rT | ) | const |
Comparison operator.
[in] | rT | The object to be compared with this one. |
References DoubleLotRecordAttribute().
|
private |
The assignment operator is not available.
References DoubleLotRecordAttribute().
bool glo::DoubleLotRecordAttribute::operator== | ( | const DoubleLotRecordAttribute & | rT | ) | const |
Comparison operator.
[in] | rT | The object to be compared with this one. |
References DoubleLotRecordAttribute().
|
virtual |
Adopts the value from transferred attribute, if possible. An attempt is made to cast the value in some way.
All non-double containers are processed in this method.
[in] | rT | The persistent attribute from which the values are to be taken. |
Reimplemented from glo::TypeLotRecordAttribute.
Reimplemented in glo::DoubleListRecordAttribute, glo::DoubleSetRecordAttribute, and glo::DoubleVectorRecordAttribute.