Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
OSD_FileIterator Class Reference

Manages a breadth-only search for files in the specified
Path.
There is no specific order of results.

#include <OSD_FileIterator.hxx>

Public Member Functions

DEFINE_STANDARD_ALLOC OSD_FileIterator ()
 Instantiates Object as empty Iterator;

 OSD_FileIterator (const OSD_Path &where, const TCollection_AsciiString &Mask)
 Instantiates Object as Iterator;
Wild-card "*" can be used in Mask the same way it
is used by unix shell for file names

void Destroy ()
 ~OSD_FileIterator ()
void Initialize (const OSD_Path &where, const TCollection_AsciiString &Mask)
 Initializes the current File Iterator

Standard_Boolean More ()
 Returns TRUE if there are other items using the 'Tree'
method.

void Next ()
 Sets the iterator to the next item.
Returns the item value corresponding to the current
position of the iterator.

OSD_File Values ()
 Returns the next file found .

Standard_Boolean Failed () const
 Returns TRUE if an error occurs

void Reset ()
 Resets error counter to zero

void Perror ()
 Raises OSD_Error

Standard_Integer Error () const
 Returns error number if 'Failed' is TRUE.


Constructor & Destructor Documentation


Member Function Documentation


The documentation for this class was generated from the following file: