#include <attributeValue.h>
Public Member Functions | |
const Attribute & | getAttribute () const |
Returns correspoinding Attribute. | |
void * | getValue () const |
Returns a void pointer to the attribute value. |
AttributeValue contains reference to a corresponding Attribute and a void pointer to the attribute value. Data type of the value can be determined by calling
const Type& t = attrVal.getAttribute().getType();
Value of an attribute from existing Object descendant instance can be obtained for example by calling
const AttributeValue& attrVal = obj.getAttributeValue("attr_name");
Users are not supposed to create instances of this class