GlobalObjects
|
Class for the integer-set attributes of a Record. More...
#include <GloIntSetRecordAttribute.h>
Public Member Functions | |
IntSetRecordAttribute (ClassInfoAttribute *pType, const std::set< int > &rValueSet, const std::streampos &rFilePos) | |
IntSetRecordAttribute (ClassInfoAttribute *pType, const std::streampos &rFilePos) | |
virtual void | addValue (int iValue) |
virtual void | clearValueLot () |
virtual BaseRecordAttribute * | getCopy () |
virtual void * | getValueAsVoidPointer () |
const std::set< int > & | getValueRef () const |
virtual std::size_t | getValueSize () const |
void | setValue (const std::set< int > &rValueSet) |
virtual void | setValueFromVoid (void *pValueSet) |
virtual int | takeValue (const BaseRecordAttribute &rT) |
Public Member Functions inherited from glo::IntLotRecordAttribute | |
IntLotRecordAttribute (ClassInfoAttribute *pType, const std::streampos &rFilePos) | |
virtual void | addValue (const std::string rsValue) |
bool | operator== (const IntLotRecordAttribute &rT) const |
Comparison operator. | |
bool | operator!= (const IntLotRecordAttribute &rT) const |
Comparison operator. | |
Public Member Functions inherited from glo::TypeLotRecordAttribute | |
TypeLotRecordAttribute (ClassInfoAttribute *pType, const std::streampos &rFilePos) | |
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 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 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 |
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 |
unsigned int | remember () |
virtual void | setDataReference (const std::string &rsDataReference) |
void | setFilePosition (const std::streampos &rFilePos) |
virtual int | setValueFromObjectAttributeID (Persistent &rObject, const AttributeID &rAttributeID) |
bool | operator== (const BaseRecordAttribute &rT) const |
Comparison operator, all attributes are compared. | |
bool | operator!= (const BaseRecordAttribute &rT) const |
Comparison operator, all attributes are compared. | |
Private Member Functions | |
IntSetRecordAttribute & | operator= (const IntSetRecordAttribute &) |
Private Attributes | |
std::set< int > | m_ValueSet |
Additional Inherited Members | |
Protected Attributes inherited from glo::LotRecordAttribute | |
std::string | m_sFileName |
Class for the integer-set attributes of a Record.
Represents an attribute of the type 'std::set<int>' of a persistent object.
|
protected |
The standard constructor is not available.
|
protectedvirtual |
The destructor is not available. The object may only be removed from memory using forget().
glo::IntSetRecordAttribute::IntSetRecordAttribute | ( | 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. |
glo::IntSetRecordAttribute::IntSetRecordAttribute | ( | ClassInfoAttribute * | pType, |
const std::set< int > & | rValueSet, | ||
const std::streampos & | rFilePos ) |
Constructor with parameter passing.
[in] | pType | A class information attribute is expected. |
[in] | rValueSet | The set of integer. |
[in] | rFilePos | The file position. |
eut::ErrorNException | An exception will be thrown if an error occurs. |
|
protected |
|
virtual |
Inserts passed value at the end of the set of integer.
[in] | iValue | The value to be inserted. |
Implements glo::IntLotRecordAttribute.
|
virtual |
The set of integer is cleared.
Implements glo::LotRecordAttribute.
|
virtual |
Returns a copy of the object. Sometimes a copy of an attribute is needed, e.g. if a deep-copied record (with copied attributes) is needed.
Implements glo::BaseRecordAttribute.
|
virtual |
Returns a raw pointer to the list of integer.
Implements glo::BaseRecordAttribute.
const std::set< int > & glo::IntSetRecordAttribute::getValueRef | ( | ) | const |
Returns a reference to m_ValueSet.
|
virtual |
Returns the number of elements in the set of integer.
Implements glo::LotRecordAttribute.
|
protected |
Comparison operator.
[in] | rT | The object to be compared with this one. |
|
private |
The assignment operator is not available.
|
protected |
Comparison operator.
[in] | rT | The object to be compared with this one. |
void glo::IntSetRecordAttribute::setValue | ( | const std::set< int > & | rValueSet | ) |
Copies the integer of the transferred set into the own set of integer (this set is emptied first).
[in] | rValueSet | The set of integer. |
|
virtual |
Copies the integer of the transferred set to its own set of integer (the own set is emptied first).
This is guaranteed by a static_cast.
[in] | pValueSet | The raw pointer to the set of of integer. |
Implements glo::BaseRecordAttribute.
|
protectedvirtual |
Transfers the contents of the element container for LotRecordAttribute::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. |
Implements glo::LotRecordAttribute.
|
virtual |
Adopts the value from transferred attribute, if possible. An attempt is made to cast the value in some way.
[in] | rT | The persistent attribute from which the values are to be taken. |
Reimplemented from glo::IntLotRecordAttribute.
|
private |
The set of integer.