Versions Compared

Key

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

...

 

Code Block
languagecpp
themeConfluence
SdaiBoolean edmiTestAggrByIterator(SdaiIterator iterId);

Checks if the ARRAY element pointed to by the specified iterator is set (has a valid value) or unset (indeterminate).

...

Returns sdaiTRUE when the specified ARRAY element has an assigned value, else sdaiFALSE is returned.

...

An ARRAY element can be assigned a value by one of the following operations: sdaiPutAggrByIndex , sdaiPutAggrByIterator , edmiWriteAggrElements . An assigned ARRAY element value can be removed, i.e. unset by one the operations sdaiUnsetAggrByIndex or sdaiUnsetAggrByIterator .

...

This operation is only applicable for ARRAY aggregates.

...

The model that holds the actual aggregate must be open before this function can be successfully performed.

...

Arguments

...


TypeNameComment
SdaiIteratoriterIdA numeric iteratorID that uniquely identifies an iterator in the actual EDMserver. The current element of the iterator will be the actual aggregate element to test for existing value. The iteratorID is defined when the iterator is created by the sdaiCreateIterator function.

...

Return Value

...

 

TypeComment
 SdaiBoolean

A SdaiBoolean value that has the following value:

  • sdaiTRUE : The actual ARRAY element has an assigned value.
  • sdaiFALSE : The actual ARRAY element value is indeterminate, i.e. the element value is unset (non existing). Use sdaiErrorQuery to check for error in operation.

...

Options

...

 

Example

...

 

Code Block
languagecpp
 SdaiArray arrayId;
 SdaiIterator iterId;
 SdaiBoolean isSet;
 ...
 iterId = sdaiCreateIterator(arrayId);

...


 if (! iterId) {

...


 /* Error in operation */

...

  
 printf("\nError in sdaiCreateIterator: %s",

...

 
 edmiGetErrorText(sdaiErrorQuery()));

...

 
 goto error;

...

 
 }
 sdaiNext(iterId);

...


 isSet = edmiTestAggrByIterator(iterId);

...


 if (isSet == sdaiTRUE) {

...


 /* Array element is set */

...

 
 . . .

 

See also

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