Versions Compared

Key

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

...

 

Code Block
languagecpp
themeConfluence
EdmiError edmiAggrValueCompare(SdaiAggr    operand1,
                                SdaiAggr    operand2, 
                                SdaiLogical *result);  

Implements the Express Aggregate Value Compare> operation as defined in section 12.2.1.6 Aggregate value comparisons; in ISO 10303-11:1994(E) : The EXPRESS Language Reference Manual.

...

This operation is only applicable to aggregates in data models. The actual data models must be open before this function can be successfully performed.

...

Arguments

...

TypeNameComment
SdaiAggr

operand1

A numeric aggregateID that uniquely identifies the aggregate instance used as operand1 (left operand) in the operation
The aggregateID is returned when the aggregate is created or it can be retrieved by an EDMinterface get operation. 

SdaiAggr

operand2

A numeric aggregateID that uniquely identifies the aggregate instance used as operand2 (right operand) in the operation.
The aggregateID is returned when the aggregate is created or it can be retrieved by an EDMinterface get operation. 

SdaiLogical

result

Address of a variable that will receive the result of the aggregate value compare operation.

 

...

Return Value

...

Insert excerpt
US:_r_EDMInterface
US:_r_EDMInterface
nopaneltrue

 

Options

...

  

OptionComment
optionnamecomment

 

Example

...

 

Code Block
languagecpp
EdmiError rstat;
 SdaiLogical result;
 SdaiAggr operand1, operand2;
 . . .
 If (rstat = edmiAggrValueCompare (operand1, operand2, &result)) {
 /* Error in operation */ 
 printf("\nError: %s in edmiAggrValueCompare\n",

...

 
 edmiGetErrorText(rstat));

...

 
 goto error;

...

 
 }
 switch (result) {

...


 case sdaiTRUE:

...

 
 . . . /* The two aggregates are value equals */

...

 
 break;

...

 
 case sdaiFALSE:

...

 
 . . . /* The two aggregates are not value equals */

...

 
 break;

...

 
 default:

...

 
 . . . /* Unset elements in operan1 or operand2,

...

 or 
 error in operation */ 
 }
 . . .

 

See also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "model" and parent = "6062220"