20002011Ericsson AB. All Rights Reserved.
The contents of this file are subject to the Erlang Public License,
Version 1.1, (the "License"); you may not use this file except in
compliance with the License. You should have received a copy of the
Erlang Public License along with this software. If not, it can be
retrieved online at http://www.erlang.org/.
Software distributed under the License is distributed on an "AS IS"
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
the License for the specific language governing rights and limitations
under the License.
CosFileTransfer_FileIterator2000-11-09PA1CosFileTransfer_FileIteratorThis module implements the OMG CosFileTransfer::FileIterator interface.
To get access to the record definitions for the structures use: -include_lib("cosFileTransfer/include/*.hrl").
next_one(Iterator) -> ReturnReturn the next FileWrapperand a boolean which indicate whether the FileWrapperis valid or not.Iterator = #objrefReturn = {boolean(), #'CosFileTransfer_FileWrapper'{the_file = File file_type = Type}}File = #objrefType = nfile | ndirectory
This operation returns true if a FileWrapper exists at the
current position and the out parameter contains a valid File
reference. If false is returned the out parameter is a non-valid
FileWrapper.
next_n(Iterator, Max) -> ReturnReturn a list, of length Maxor less, containing FileWrappersand a boolean which indicates if more FileWrappersexistsIterator = #objrefMax = unsigned long()Return = {boolean(), FileList}FileList = [#'CosFileTransfer_FileWrapper'{the_file = File file_type = Type}]File = #objrefType = nfile | ndirectory
This operation returns true if the requested number of FileWrappers
can be delivered and there are additional FileWrappers. If false is
returned a list, of length Max or less, containing the last valid
FileWrappers associated with the target object.
destroy(Iterator) -> okTerminate the target objectIterator = #objref