Property :: attributeExtension - Provide attribute extension value
The function provides an attribute extension value. When the requested extension attribute is not static and no instance is selected in the property handle, the function throws an exception.
A value handle refers to a (usually) opened value. Invalid value handles may cause an exception.
Implementation overview
- Provide attribute extension by name
Property :: attributeExtension ( sName ) - Provide attribute extension by position
Property :: attributeExtension ( iPosition )
Implementation details
-
Provide attribute extension by name
odaba::Value & Property  :: attributeExtension ( odaba::String &sName )
The function tries to locate the attribute extension with the name passed in sName. When no such attribute extension had been defined, the function throws an exception. In order to avoid exceptions, one may call attributeExtensionExist().
if ( attributeExtensionExist("age_sum") )
Message( attributeExtension("age_sum") );
- sName - Name
to list
-
Provide attribute extension by position
odaba::Value & Property  :: attributeExtension ( int32 iPosition )
The function tries to locate the attribute extension at position passed in iPosition. When iPosition exceeds the number of defined attribute extensions, the function throws an exception. In order to avoid exceptions, one may call attributeExtensionCount().
num = attributeExtensionCount();
while ( --num >= 0 )
Message( attributeExtension(num) );
- iPosition
- Position in collection
The position of an element in a collection is beginning with 0 for the first element.
to list
- iPosition
- Position in collection