company logo

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.

Return value:  Value handle ( odaba::Value & )

A value handle refers to a (usually) opened value. Invalid value handles may cause an exception.

Implementation overview

Implementation details

  1. 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
  2. to list
  3. 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.

  4. to list