company logo

PropertyDefinition :: typeDefinition - Type definition for property

When the property has got a complex or enumerated data type, the function returns the type definition for the property. The type definition may for the property may differ from the type definition of the instance currently selected in the property handle (currentTypeDefinition()),

If the function is not called with a valid property definition or when the property definition does not provide a type definition, the function throws an exception.

... fragment ( Property &person ) {

  PropertyDefinition   pd(person.propertyDefinition());

  if ( pd.hasType() )

    Application::output(pd.typeDefinition().name());

}

Return value:  Type definition ( odaba::TypeDefinition  )

Type definition refers to a type descriptor for a complex data type (structure), view or enumeration.

Implementation details

odaba::TypeDefinition PropertyDefinition  :: typeDefinition (  )