Code Block | ||||
---|---|---|---|---|
| ||||
EdmiError edmiCopyAggr (SdaiAggr sourceAggrId,
SdaiInteger sourceIndex,
SdaiAggr targetAggrId,
SdaiInteger targetIndex,
SdaiInteger maxElementsToCopy);
|
Copies the specified number of elements in one (source) aggregate to another (target) aggregate. The target aggregate must be located in a data model element of data type SdaiAggr cannot be copied by this operation. Hence, to copy a nested aggregate, several invocations of the edmiCopyAggr operation are required.
The model that locates the source aggregate must be open for any access and the data model that locates the target model must be open for write access before this operation can be successfully performed. Header:
#include "sdai.h"
Prototype:
EdmiError edmiCopyAggr (SdaiAggr sourceAggrId,
SdaiInteger sourceIndex,
SdaiAggr targetAggrId,
SdaiInteger targetIndex,
SdaiInteger maxElementsToCopy);
Arguments:
Arguments
...
Type | Name | Comment |
SdaiAggr | sourceAggrId | A numeric aggregateID that uniquely identifies the source aggregate instance in the operation. |
SdaiInteger | sourceIndex | Specifies the index of the first element to copy from the source aggregate. The index range is:
|
SdaiAggr | targetAggrId | A numeric aggregateID that uniquely identifies the target aggregate instance in the operation. |
SdaiInteger | targetIndex | Specifies the lower index in the target aggregate to receive the first element from the source aggregate. |
SdaiInteger | maxElementsToCopy | Specifies the maximum number of elements to copy. |
...
Return Value
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Options
...
Example
...
Code Block | ||
---|---|---|
| ||
EdmiError rstat;
SdaiAggr sourceAggrId, targetAggrId;
...
if (rstat = edmiCopyAggr (sourceAggrId,
0,
targetAggrId,
0,
0)) {
/* Error in operation */
printf("\nError in edmiCopyAggr: %s",
edmiGetErrorText(rstat));
goto error;
}
... |
See also
Filter by label (Content by label) | ||||||
---|---|---|---|---|---|---|
|