|
GlobalObjects
|
This class reflects a unique ID of a class information attribute. More...
#include <GloAttributeID.h>
Public Member Functions | |
| AttributeID () | |
| AttributeID (const AttributeID &rT) | |
| AttributeID (const ClassInfoAttribute &rClassInfoAttribute) | |
| AttributeID (const std::string &sAttributeId, const std::string &sDelimiter=".") | |
| AttributeID (unsigned long ulClassID, int iFieldPos) | |
| virtual | ~AttributeID () |
| unsigned long | getClassID () const |
| ClassInfoAttribute * | getClassInfoAttribute () const |
| int | getFieldPos () const |
| bool | isNULL () const |
| AttributeID & | operator= (const AttributeID &rT) |
| void | setClassID (unsigned long ulClassID) |
| virtual void | setClassInfoAttribute (const ClassInfoAttribute &rClassInfoAttribute) |
| void | setFieldPos (int iFieldPos) |
| int | setID (const std::string &sAttributeId, const std::string &sDelimiter=".") |
| void | setID (unsigned long ulClassID, int iFieldPos) |
| virtual void | setNULL () |
| std::string | toString () const |
| std::string | toString (const std::string &sDelimiter) const |
| bool | operator== (const AttributeID &rT) const |
| Comparison operator. | |
| bool | operator!= (const AttributeID &rT) const |
| Comparison operator. | |
| bool | operator> (const AttributeID &rT) const |
| Comparison operator. | |
| bool | operator>= (const AttributeID &rT) const |
| Comparison operator. | |
| bool | operator< (const AttributeID &rT) const |
| Comparison operator. | |
| bool | operator<= (const AttributeID &rT) const |
| Comparison operator. | |
Private Attributes | |
| int | m_iFieldPos |
| ClassInfoAttribute * | m_pGloClassInfoAttribute |
| unsigned long | m_ulClassID |
This class reflects a unique ID of a class information attribute.
Class information attributes are assigned to a class via the class ID. A class information attribute also has a field position in the table. A unique ID can be formed from these two values. The address of the index attribute is also included.
Is used to search and sort attributes.
| glo::AttributeID::AttributeID | ( | ) |
Standard constructor.
Referenced by AttributeID(), operator!=(), operator<(), operator<=(), operator=(), operator==(), operator>(), and operator>=().
| glo::AttributeID::AttributeID | ( | unsigned long | ulClassID, |
| int | iFieldPos ) |
Constructor with parameter passing.
| [in] | ulClassID | The class ID. |
| [in] | iFieldPos | The column position in the table (start at 0). |
| glo::AttributeID::AttributeID | ( | const std::string & | sAttributeId, |
| const std::string & | sDelimiter = "." ) |
Constructor with parameter passing. Takes the class ID and column position from a string if it is in the following form: e.g. "2.6" => class ID = 2, column position = 6. Leading and following blanks are ignored.
| [in] | sAttributeId | Class ID and columnPosition in a string. |
| [in] | sDelimiter | The separator (default "."). |
| eut::ErrorNException | An exception is thrown if the passed parameters are invalid. |
| glo::AttributeID::AttributeID | ( | const ClassInfoAttribute & | rClassInfoAttribute | ) |
Constructor with parameter passing.
| [in] | rClassInfoAttribute | The class ID and column position as well as the address of the class information attribute are adopted. |
| glo::AttributeID::AttributeID | ( | const AttributeID & | rT | ) |
|
virtual |
Destructor.
| unsigned long glo::AttributeID::getClassID | ( | ) | const |
| ClassInfoAttribute * glo::AttributeID::getClassInfoAttribute | ( | ) | const |
Returns a pointer to the m_pGloClassInfoAttribute
| int glo::AttributeID::getFieldPos | ( | ) | const |
| bool glo::AttributeID::isNULL | ( | ) | const |
Checks whether class ID > 0, i.e. whether it is valid.
| bool glo::AttributeID::operator!= | ( | const AttributeID & | rT | ) | const |
Comparison operator.
All attributes are compared except m_pGloClassInfoAttribute.
| [in] | rT | The object to be compared with this one. |
References AttributeID().
| bool glo::AttributeID::operator< | ( | const AttributeID & | rT | ) | const |
Comparison operator.
All attributes are compared except m_pGloClassInfoAttribute.
| [in] | rT | The object to be compared with this one. |
References AttributeID().
| bool glo::AttributeID::operator<= | ( | const AttributeID & | rT | ) | const |
Comparison operator.
All attributes are compared except m_pGloClassInfoAttribute.
| [in] | rT | The object to be compared with this one. |
References AttributeID().
| AttributeID & glo::AttributeID::operator= | ( | const AttributeID & | rT | ) |
Assignment operator.
| [in] | rT | The data is transferred from this object. |
References AttributeID().
| bool glo::AttributeID::operator== | ( | const AttributeID & | rT | ) | const |
Comparison operator.
All attributes are compared except m_pGloClassInfoAttribute.
| [in] | rT | The object to be compared with this one. |
References AttributeID().
| bool glo::AttributeID::operator> | ( | const AttributeID & | rT | ) | const |
Comparison operator.
All attributes are compared except m_pGloClassInfoAttribute.
| [in] | rT | The object to be compared with this one. |
References AttributeID().
| bool glo::AttributeID::operator>= | ( | const AttributeID & | rT | ) | const |
Comparison operator.
All attributes are compared except m_pGloClassInfoAttribute.
| [in] | rT | The object to be compared with this one. |
References AttributeID().
| void glo::AttributeID::setClassID | ( | unsigned long | ulClassID | ) |
Sets the class ID.
| [in] | ulClassID | The class ID. |
|
virtual |
Sets m_pGloClassInfoAttribute, all attributes are changed to the values of the passed ClassInfoAttribute.
| [in] | rClassInfoAttribute | The ClassInfoAttribute. |
| void glo::AttributeID::setFieldPos | ( | int | iFieldPos | ) |
Sets the column position.
| [in] | iFieldPos | The column position in the table (start at 0). |
| int glo::AttributeID::setID | ( | const std::string & | sAttributeId, |
| const std::string & | sDelimiter = "." ) |
Takes the class ID and column position from a string if it is in the following form: e.g. "2.6" => class ID = 2, column position = 6. Leading and following blanks are ignored.
| [in] | sAttributeId | Class ID and columnPosition in a string. |
| [in] | sDelimiter | The separator (default "."). |
| void glo::AttributeID::setID | ( | unsigned long | ulClassID, |
| int | iFieldPos ) |
Sets the class ID and the column position.
| [in] | ulClassID | The class ID. |
| [in] | iFieldPos | The column position in the table (start at 0). |
|
virtual |
Sets the class ID and column position to 0.
| std::string glo::AttributeID::toString | ( | ) | const |
Returns the class ID and column position in a string. The "." is used as separator. For example, "2.6" => class ID = 2, column position = 6.
| std::string glo::AttributeID::toString | ( | const std::string & | sDelimiter | ) | const |
Returns the class ID and column position in a string with optional separators. For example, if sDelimiter == "-": "2-6" => Class ID = 2, ColumnPosition = 6.
| [in] | sDelimiter | The delimiter. |
|
private |
The column position in the table (start at 0).
|
private |
The address to the IndexAttribute.
|
private |
The class id