This operation implements the aggregate superset operation in the Express language, defined in 12.6.6 Subset operator in ISO 10303-11:1994(E) : The EXPRESS Language Reference Manual.
The data model(s) that hosts the two specified aggregates must be open before this operation can be successfully performed.
Related functions: edmiIsAggrSubset
Header:
#include "sdai.h"
Prototype:
EdmiError edmiIsAggrSuperset(SdaiAggr operand1,
SdaiAggr operand2,
SdaiLogical *result);
Arguments:
operand1 |
A numeric aggregateID that uniquely identifies the aggregate instance used as the left operand (operand1) in the aggregate superset operation. |
operand2 |
A numeric aggregateID that uniquely identifies the aggregate instance used as the right operand (operand2) in the aggregate superset operation. |
result |
Address of a SdaiLogical variable that will receive the result of the aggregate subset operation. |
Returns:
A completion code of datatype EdmiError is the returned function value. The completion code has the following values:
Completion code = 0 : Operation successfully performed.
Completion code != 0: Error in operation. Completion code is an EDMinterface error code. Use edmiGetErrorText to get the error text corresponding to the error code.
EXAMPLE
SdaiAggr operand1, operand2;
EdmiError rstat;
SdaiLogical result;
. . .
if (rstat = edmiIsAggrSuperset (operand1, operand2, &result)) {
/* Error in operation */
printf("\nError: %s in edmiIsAggrSuperset\n",
edmiGetErrorText(rstat));
goto error;
}
switch (result) {
case sdaiTRUE:
. . . /* operand1 is a superset operand2 */
break;
case sdaiFALSE:
. . . /* operand1 is not a superset of operand2 */
break;
default:
. . . /* One or more unset value found in operation */
}
. . .