OCCT3D OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    OSD_FileIterator Class Reference

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

    #include <OSD_FileIterator.hxx>

    Public Member Functions

     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.
    bool 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 .
    bool Failed () const
     Returns TRUE if an error occurs.
    void Reset ()
     Resets error counter to zero.
    void Perror ()
     Raises OSD_Error.
    int Error () const
     Returns error number if 'Failed' is TRUE.

    Detailed Description

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

    Constructor & Destructor Documentation

    ◆ OSD_FileIterator() [1/2]

    OSD_FileIterator::OSD_FileIterator ( )

    Instantiates Object as empty Iterator;.

    ◆ OSD_FileIterator() [2/2]

    OSD_FileIterator::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.

    ◆ ~OSD_FileIterator()

    OSD_FileIterator::~OSD_FileIterator ( )
    inline

    Member Function Documentation

    ◆ Destroy()

    void OSD_FileIterator::Destroy ( )

    ◆ Error()

    int OSD_FileIterator::Error ( ) const

    Returns error number if 'Failed' is TRUE.

    ◆ Failed()

    bool OSD_FileIterator::Failed ( ) const

    Returns TRUE if an error occurs.

    ◆ Initialize()

    void OSD_FileIterator::Initialize ( const OSD_Path & where,
    const TCollection_AsciiString & Mask )

    Initializes the current File Iterator.

    ◆ More()

    bool OSD_FileIterator::More ( )

    Returns TRUE if there are other items using the 'Tree' method.

    ◆ Next()

    void OSD_FileIterator::Next ( )

    Sets the iterator to the next item. Returns the item value corresponding to the current position of the iterator.

    ◆ Perror()

    void OSD_FileIterator::Perror ( )

    Raises OSD_Error.

    ◆ Reset()

    void OSD_FileIterator::Reset ( )

    Resets error counter to zero.

    ◆ Values()

    OSD_File OSD_FileIterator::Values ( )

    Returns the next file found .


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