company logo

TypeDefinition :: sharedBaseName - Get property names for shared base types

The function returns the property names for the shared base type of a complex data type at position iPosition. The function does not search recursively, but only for shared base types directly embedded.

In order to avoid exceptions for invalid index positions, sharedBaseTypeCount() might be called:

... fragment ( TypeDefinition  &td) {

  int32         count = td.sharedBaseNameCount();

  int32         i = 0;

  while ( i < count )

    printf(td.sharedBaseNameC(i++);

}

Return value:  Property name ( odaba::String & )

The property name may contain a property path that consists of a sequence of property names. Not allowed are operation paths or path properties, i.e. the property name must consist of identifiers separated by dots (.), only.

In order to pass no property name, an empty string ( String() ) has to be passed.

Implementation details

odaba::String TypeDefinition  :: sharedBaseName ( int32 iPosition, bool bCompletePath )
  • iPosition - Position in collection

    The position of an element in a collection is beginning with 0 for the first element.

  • bCompletePath - Complete path

    The full path option is used to request the property path including base structure names.