...
Code Block | ||||
---|---|---|---|---|
| ||||
EdmiError edmiIsAggrSubset(SdaiAggr operand1,
SdaiAggr operand2,
SdaiLogical *result);
|
This operation implements the aggregate subset operation in the Express language, defined in 12.6.5 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: edmiIsAggrSuperset
Header:
#include "sdai.h"
Prototype:
EdmiError edmiIsAggrSubset(SdaiAggr operand1,
SdaiAggr operand2,
SdaiLogical *result);
Arguments:
Arguments
...
Type | Name | Comment | |
SdaiAggr | operand1 | A numeric aggregateID that uniquely identifies the aggregate instance used as the left operand (operand1) in the aggregate subset operation. | The aggregateID is returned when the aggregate is created or it can be retrieved with an EDMinterface get operation. |
SdaiAggr | operand2 | A numeric aggregateID that uniquely identifies the aggregate instance used as the right operand (operand2) in the aggregate subset operation. | The aggregateID is returned when the aggregate is created or it can be retrieved with an EDMinterface get operation.. |
SdaiLogical | result | Address of a SdaiLogical variable that will receive the result of the aggregate subset operation. | The result is as follows:
|
...
Return Value
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Options
...
Example
...
Code Block | ||
---|---|---|
| ||
SdaiAggr operand1, operand2; EdmiError rstat; SdaiLogical result; . . . if (rstat = edmiIsAggrSubset (operand1, operand2, &result)) { /* Error in operation */ printf("\nError: %s in edmiIsAggrSubset\n", |
...
edmiGetErrorText(rstat)); |
...
goto error; |
...
} switch (result) { |
...
case sdaiTRUE: |
...
. . . /* operand1 is a subset operand2 */ |
...
break; |
...
case sdaiFALSE: |
...
. . . /* operand1 is not a subset of operand2 */ |
...
break; |
...
default: |
...
. . . /* One or more unset value found in operation */ |
...
}
. . . |
See also
Filter by label (Content by label) | ||||||
---|---|---|---|---|---|---|
|