SEDRIS Reference Manual
APPENDIX A - Transmittal Access Level 0 API Functions SE InitializeAssociateIterator |
---|
extern SE_Return_Code | |||
SE_InitializeAssociateIterator | |||
( | |||
SE_Object | start_object, | 1 | |
SE_Search_Filter | filter, | 2 | |
SE_ITR_Behaviour | itr_traversal, | 3 | |
SE_Iterator | * | iterator_out_ptr | 4 |
); |
This function returns a handle to an iterator created to traverse over the list of associate DRM objects returning handles to those that meet the following conditions:
If start_object is associated solely by one-way incoming associations, or if start_object does not participate in any associations, an associate iterator is created, but it has a length of 0 and does not return any DRM objects.
The SE_GetNextObject() function is provided to get the next DRM object from an iterator.
The SE_GetIterationLengthRemaining() function may be invoked to find out the remaining length of an iterator (i.e., the number of DRM objects remaining inside the iterator).
The SE_FreeIterator() function should be invoked when finished with an iterator to free it. Iterators can be freed at any time (e.g., iterators can be freed before all of their DRM objects have been returned).
SE_RETCOD_SUCCESS | and the iterator is initialized. |
SE_RETCOD_FAILURE | and the status code is set appropriately if the call failed. |
SE_Status_Code(s) when SE_RETCOD_SUCCESS is returned:
SE_STATCODE_SUCCESS | set if valid parameters were passed in and all operations succeeded. |
SE_Status_Code(s) when SE_RETCOD_FAILURE is returned:
SE_STATCODE_UNRESOLVED_INPUT_OBJECT | set if start_object is currently unresolved. |
SE_STATCODE_C_ENUMERATION_VALUE_INVALID | set if itr_traversal is not a valid value. |
SE_STATCODE_INACTIONABLE_FAILURE |
set if
|
1 the object whose list of associates will be returned
2 a search filter that will be used to filter the output of this iterator.
3 the user must choose how the iterator will behave when it encounters an Inter-Transmittal Reference (ITR). The iterator could automatically resolve such references and continue the search within the new transmittal; report all ITR references without resolving them; or just ignore them completely and continue to search within the current transmittal.
4 a pointer to the freshly created iterator that will iterate over the associated objects that (1) are associated by an association from the start_object, and (2) pass the criteria defined in the search filter (if a search filter was provided).
Prev: SE_InitializeAggregateIterator.
Next: SE_InitializeComponentIterator.
Up:Index.
|