edmiInstanceValueCompare


 

EdmiError edmiInstanceValueCompare(SdaiAppInstance  operand1,
                                    SdaiAppInstance  operand2, 
                                    SdaiLogical      *result);  

This operation implements the Entity value comparison (deep compare) operation in the Express language, defined in 12.2.1.7 Entity value comparison in ISO 10303-11:1994(E) : The EXPRESS Language Reference Manual. The data model(s) that hosts the two specified instances must be open before this operation can be successfully performed.

Arguments


TypeNameComment
SdaiAppInstance

operand1

A numeric instanceID that uniquely identifies the instance in the EDMdatabase that is the left operand (operand1) in the Entity value comparison (instance deep comparison) operation

SdaiAppInstance

operand2

A numeric instanceID that uniquely identifies the instance in the EDMdatabase that is the right operand (operand2) in the Entity value comparison (instance deep comparison) operation.

SdaiLogical

result

Address of a SdaiLogical variable that will receive the result of the Entity value comparison (instance deep comparison) operation. The result is as follows: 

  • sdaiTRUE: the compared instance values are identical
  • sdaiFALSE: the compared instance values are not identical.
  • sdaiUNKNOWN: use sdaiErrorQuery to check for possible error in operation.

Return Value


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

Options


 

Example


 

 SdaiAppInstance operand1, operand2;
 EdmiError rstat;
 SdaiLogical result;
 . . .
 if (rstat = edmiInstanceValueCompare (operand1, operand2, &result)) {
 /* Error in operation */ 
 printf("\nError: %s in edmiInstanceValueCompare\n", 
 edmiGetErrorText(rstat)); 
 goto error; 
 }
 switch (result) {
 case sdaiTRUE: 
 . . . /* The two instances are value equal */ 
 break; 
 case sdaiFALSE:  
 . . . /* The two instances are not value equal */ 
 break; 
 default: 
 . . . /* One or more unset attributes found in comparison */  
 }
 . . .

 

See also

Filter by label

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

Â