Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagecpp
themeConfluence
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

...

Insert excerpt
US:_r_EDMInterface
US:_r_EDMInterface
nopaneltrue

Options

...

 

Example

...

 

Code Block
languagecpp
 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 (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "model" and parent = "6062220"