edmiGetDefinedType

SdaiInstance edmiGetDefinedType(SdaiModel  modelId,
                                 SdaiString typeName);

Returns a numeric typeID that uniquely identifies a defined type instance in the EDMdatabase. The actual defined type is specified by the name of the defined type and a numeric modelID that uniquely identifies a data model in the EDMdatabase that has the Express schema that defines the actual defined type as the underlying schema.  The returned typeID can be used to identify the actual defined type in subsequent EDMinterface operations. The returned typeID will be a constant value throughout the lifetime of the actual defined type instance in the EDMdatabase.  If the actual defined type is not found in the actual dictionary model, then this operation will search for the specified defined type in the EDMmetaMetaModel named SDAI_DICTIONARY_MODEL_DICTIONARY_DATA. The specified data model must be open before this function can be successfully performed.

Arguments


TypeNameComment
SdaiModel

modelId

A numeric modelID that uniquely identifies the data model of interest in the EDMdatabase.  The modelID is returned from the functions: sdaiCreateModel , sdaiCreateModelBN , sdaiOpenModelBN , edmiGetModel , edmiGetModelBN , sdaiGetInstanceModel

SdaiString

typeName

Specifies the name of the defined type of interest. A defined type name is unique within an Express schema, hence the combination of the arguments <modelId> and <typeName> uniquely identifies a defined type instance in an EDMdatabase. Names of defined types are case insensitive.

Return Value


Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_EDMInterface'.

Options


 

Example


 

 SdaiModel modelId;
 SdaiInstance typeId;
 . . .
 typeId = edmiGetDefinedType(modelId,"Length_Measure");
 if (! typeId) {
 /* Error in operation */ 
 printf("\nError: %s in edmiGetDefinedType\n", 
 edmiGetErrorText(rstat)); 
 goto error; 
 }
 printf("\ntypeId: %lu", typeId);
 . . .

 

See also

Filter by label

There are no items with the selected labels at this time.