edmiGetAttrPrimitiveTypeBN

EdmiError edmiGetAttrPrimitiveTypeBN(SdaiString        schemaName,
                                      SdaiString        entityName, 
                                      SdaiString        attributeName, 
                                      SdaiPrimitiveType *dataType); 

Returns the primitive type of the data value that can be assigned to the specified attribute in an instance of a type that contains this attribute.

In this context an attribute also represents a view_entity attribute.

The dictionary model that defines the specified attribute must be open before this function can be successfully performed.

Arguments


TypeNameComment
SdaiString

schemaName

Specifies the name of an Express schema that defines the attribute of interest. This Express schema must exist as a dictionary model in the EDMdatabase. Schema names are case insensitive.

SdaiString

entityName

Specifies the name of the entity or view_entity that defines the attribute of interest. This entity must be defined by the EXPRESS schema specified by the schemaName argument. Entity names are case insensitive.

SdaiString

attributeName

Specifies the name of the attribute or view_entity attribute of interest. Attribute names are case insensitive.

SdaiPrimitiveType

dataType

Address of the variable that will receive the legal primitive type of data value that can be assigned to the specified attribute.

   

Return Value


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

Options


 

Example


 

EdmiError rstat;
 SdaiPrimitiveType dataType;
 . . .
 if (rstat = edmiGetAttrPrimitiveTypeBN("PDM_Schema",
 "Product", 
 "Description", 
 &dataType)) { 
 /* Error in operation */ 
 printf("\nError: %s in edmiGetAttrPrimitiveTypeBN\n", 
 edmiGetErrorText(rstat)); 
 goto error; 
 }
 switch (dataType) {
 case sdaiINTEGER: 
 . . . 
 break; 
 case sdaiREAL: 
 . . . 
 break; 
 case sdaiSTRING: 
 . . . 
 break; 
 case sdaiBOOLEAN: 
 . . . 
 break; 
 case sdaiLOGICAL: 
 . . . 
 break; 
 case sdaiBINARY: 
 . . . 
 break; 
 case sdaiENUMERATION: 
 . . . 
 break; 
 case sdaiINSTANCE: 
 . . . 
 break; 
 case sdaiAGGR: 
 . . . 
 break; 
 case sdaiADB: 
 . . . 
 break; 
 default: 
 /* Unknown value */ 
 }
 . . .

 

See also

Filter by label

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

Â