SEDRIS Reference Manual
APPENDIX A - Transmittal Access Level 0 API
Functions
SE GetNextObject
extern SE_Return_Code
SE_GetNextObject
(
SE_Iterator iterator, (notes)
SE_Object *next_object_out_ptr, (notes)
SE_Object *link_class_object_out_ptr (notes)
);

Definition

Iterates over objects available through an iterator.

This function returns the following two items (via out parameters):


Returns

SE_RET_CODE_SUCCESS and the requested object(s) is returned.
SE_RET_CODE_FAILUREand the status code is set appropriately if the call failed.

Status Codes

SE_Status_Code(s) when SE_RET_CODE_SUCCESS is returned:

SE_STAT_CODE_SUCCESS set if valid parameters were passed in and either no inter-transmittal references (ITRs) were encountered in searching for the next object, or the iterator is configured to ignore ITR.
SE_STAT_CODE_DIFFERENT_TRANSMITTAL set if
  1. valid parameters were passed in,
  2. the iterator is configured to automatically resolve ITR,
  3. an ITR reference was encountered in searching for the next object, and
  4. the iterator successfully resolved it and continued to search in the new, different transmittal until the next object from the iterator was found.

SE_Status_Code(s) when SE_RET_CODE_FAILURE is returned:

SE_STAT_CODE_UNRESOLVED_OUTPUT_OBJECT set if valid parameters were passed in, an ITR reference was encountered in searching for the next object, and either the iterator is configured to automatically resolve ITR references but was unable to do so, or it is configured to stop at ITR references.
SE_STAT_CODE_NO_OBJECT set if the iterator is out of objects to return.
SE_STAT_CODE_INACTIONABLE_FAILURE set if
  1. the iterator is invalid, or
  2. the call fails for any other reason.


Parameters Notes


iterator

 the iterator whose next object is being requested.

next_object_out_ptr

 a pointer to a variable in the user's memory space,
    into which the next object of the iterator will be copied.

link_class_object_out_ptr

 a pointer to
    a variable in the user's memory space, into which then link object
    traversed to reach the 'next object' will be copied. If no association
    class object was attached to the link used to reach the next object,
    then *link_class_object_out_ptr will be set to NULL.


Prev: SE_GetLastFunctionStatus. Next: SE_GetNthAssociate. Up:Index.

Last updated: July 16, 2004 Copyright © 2004 SEDRIS