edmiGetInstanceContainerId

EdmiError edmiGetInstanceContainerId(SdaiModel         modelId,
                                      SdaiString        containerName,
                                      SdaiContainerType *containerType,
                                      SdaiContainer     *containerId,
                                      SdaiAggr          *containerInstancesId);

Returns the id, type and contents of an instance container identified by its name and modelId.

Arguments


TypeNameComment
SdaiModel

modelId

Instance Id that uniquely identifies the edmModel in the EDMdatabase

SdaiString

containerName

The optional name that was assigned to the instance container when it was created.

SdaiContainerType

containerType

Variable that will receive an enumeration value representing the type of instance container. possible values are; CONTAINER, LOCK_CONTAINER, MODEL_CONTAINER and MODEL_LOCK_CONTAINER.

SdaiContainer

containerId

Variable that will receive the containerId that uniquely represents the instance container in the EDMdatabase.

SdaiAggr

containerInstancesId

Variable that will receive the instance id of an aggregate containing all instances in the container.

Return Value


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

Options


 

Example


 

 EdmiError rstat;
 SdaiModel modelId;
 SdaiContainerType contType;
 SdaiContainer contId;
 SdaiAggr contInst;
 . . . 
  
 if (rstat = edmiGetInstanceContainerId(modelId, "myContainer",
 &contType, &contId,  
 &contInst)) { 
 printf("\nError %d in edmiGetInstanceContainerId: %s", rstat, 
 edmiGetErrorText(rstat)); 
 goto err; 
 }
 switch (contType) {
 case CONTAINER: 
 printf("\nPlain Instance Container"); 
 break; 
 case LOCK_CONTAINER: 
 printf("\nLockable Instance Container"); 
 break; 
 case MODEL_CONTAINER: 
 printf("\nPlain Instance Model Container"); 
 break; 
 case MODEL_LOCK_CONTAINER: 
 printf("\nLockable Instance Model Container"); 
 break; 
 default: 
 printf("\nError: Unknown Instance Container Type!"); 
 goto err; 
 }
 . . . 

 

See also

Filter by label

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

 

Â