GlobalObjects
|
Base class for item container attributes of a Record. More...
#include <GloLotRecordAttribute.h>
Public Member Functions | |
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 |
virtual int | takeValue (const BaseRecordAttribute &rT) |
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 | |
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) | |
Protected Attributes | |
std::string | m_sFileName |
Private Member Functions | |
LotRecordAttribute & | operator= (const LotRecordAttribute &) |
|
protected |
The standard constructor is not available.
|
protectedvirtual |
The destructor is not available. The object may only be removed from memory using forget().
glo::LotRecordAttribute::LotRecordAttribute | ( | 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, the respective element container is emptied.
Implemented in glo::DoubleListRecordAttribute, glo::DoubleSetRecordAttribute, glo::DoubleVectorRecordAttribute, glo::IntListRecordAttribute, glo::IntSetRecordAttribute, glo::IntVectorRecordAttribute, glo::OdRefListRecordAttribute, glo::OdRefSetRecordAttribute, glo::PoRefListRecordAttribute, glo::PoRefSetRecordAttribute, glo::StringListRecordAttribute, glo::StringSetRecordAttribute, and glo::StringVectorRecordAttribute.
|
virtual |
Returns false, because attribute data is always stored outside the table in a file. The reference to the file is stored in the table.
Implements glo::BaseRecordAttribute.
|
virtual |
Out of bounds!
Reimplemented from glo::BaseRecordAttribute.
|
virtual |
Returns the field length of the attribute value converted to a formatted data string. In this case is always the length of the file name of the file in which the item container is to be placed.
Implements glo::BaseRecordAttribute.
|
virtual |
Returns the file name (composed of the file name and the attribute ID) in which the attribute data is stored.
Reimplemented from glo::BaseRecordAttribute.
const std::string & glo::LotRecordAttribute::getFileName | ( | ) | const |
Returns the name of the file in which the item container should be placed.
|
virtual |
Provides the name of the external file with the attribute's data and a information whether it needs to be rewritten, kept or deleted if there is content to be saved. The name of the external file is also set in the m_sFileName attribute.
[in,out] | rsRetVal | The name of the external file with the data of the attribute. The name of the external file is also set in the m_sFileName attribute. |
[in,out] | rRetValInfo | The information how to handle the external file. |
[in] | ObjID | If a file name has to be created, it will be formed from this object ID. Usually this is the object ID of the object with this attribute. If an invalid ObjID (ObjID.isNULL()) is transferred, a name filled only with blanks will be returned. |
Reimplemented from glo::BaseRecordAttribute.
|
virtual |
Cannot return the value as string, returns "?" instead.
Implements glo::BaseRecordAttribute.
|
virtual |
Returns the value as it can be displayed for the GUI, the type and the number of objects in the item container.
Implements glo::BaseRecordAttribute.
|
virtual |
Cannot return the value as string, returns "?" instead.
Implements glo::BaseRecordAttribute.
Reimplemented in glo::OdRefListRecordAttribute, glo::OdRefSetRecordAttribute, glo::PoRefListRecordAttribute, and glo::PoRefSetRecordAttribute.
|
virtual |
Cannot return the value as string, returns "?" instead.
Implements glo::BaseRecordAttribute.
|
pure virtual |
Returns the number of objects in the item container.
Implemented in glo::DoubleListRecordAttribute, glo::DoubleSetRecordAttribute, glo::DoubleVectorRecordAttribute, glo::IntListRecordAttribute, glo::IntSetRecordAttribute, glo::IntVectorRecordAttribute, glo::OdRefListRecordAttribute, glo::OdRefSetRecordAttribute, glo::PoRefListRecordAttribute, glo::PoRefSetRecordAttribute, glo::StringListRecordAttribute, glo::StringSetRecordAttribute, and glo::StringVectorRecordAttribute.
|
virtual |
Reinitializes the attribute, the item container is emptied.
Implements glo::BaseRecordAttribute.
bool glo::LotRecordAttribute::operator!= | ( | const LotRecordAttribute & | rT | ) | const |
Comparison operator.
[in] | rT | The object to be compared with this one. |
|
private |
The assignment operator is not available.
bool glo::LotRecordAttribute::operator== | ( | const LotRecordAttribute & | rT | ) | const |
Comparison operator.
[in] | rT | The object to be compared with this one. |
void glo::LotRecordAttribute::setDeterminedFileNameFromAttributeValue | ( | ObjID | ObjID | ) |
Sets the identified designation of the file in which the item container is to be accommodated if there is something to save.
[in] | ObjID | If a file name has to be created, the file name is formed from this object ID. Usually this is the object ID of the object whose attribute value is requested. |
void glo::LotRecordAttribute::setFileName | ( | const std::string & | rsFileName | ) |
Sets the name of the file in which the item container should be placed.
[in] | rsFileName | The file name. |
|
protectedpure virtual |
Transfers the contents of the element container in subclasses for updateDataReference (...) in a suitable form in the file stream passed.
[in,out] | rFileStream | The filestream. |
eut::ErrorNException | An exception is thrown if parameter rFileStream is invalid or not open for writing. |
Implemented in glo::DoubleListRecordAttribute, glo::DoubleSetRecordAttribute, glo::DoubleVectorRecordAttribute, glo::IntListRecordAttribute, glo::IntSetRecordAttribute, glo::IntVectorRecordAttribute, glo::OdRefListRecordAttribute, glo::OdRefSetRecordAttribute, glo::PoRefListRecordAttribute, glo::PoRefSetRecordAttribute, glo::StringListRecordAttribute, glo::StringSetRecordAttribute, and glo::StringVectorRecordAttribute.
|
virtual |
Deletes or saves an external file containing the attribute data.
[in] | rsDataPath | The full directory name where the data can be found. The data is always located in a subdirectory of the directory in which the schema file is located. |
[in] | MethodInfo | The information how to handle an external file. |
Reimplemented from glo::BaseRecordAttribute.
|
protected |
Item containers are stored in files, here the file name.