Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
OSD_DirectoryIterator Class Reference

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

#include <OSD_DirectoryIterator.hxx>

Public Member Functions

 OSD_DirectoryIterator ()
 Instantiates Object as empty Iterator;.
 
 OSD_DirectoryIterator (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_DirectoryIterator ()
 
void Initialize (const OSD_Path &where, const TCollection_AsciiString &Mask)
 Initializes the current File Directory.
 
bool More ()
 Returns TRUE if other items are found while 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_Directory Values ()
 Returns the next item 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 sub-directories in the specified Path. There is no specific order of results.

Constructor & Destructor Documentation

◆ OSD_DirectoryIterator() [1/2]

OSD_DirectoryIterator::OSD_DirectoryIterator ( )

Instantiates Object as empty Iterator;.

◆ OSD_DirectoryIterator() [2/2]

OSD_DirectoryIterator::OSD_DirectoryIterator ( 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_DirectoryIterator()

OSD_DirectoryIterator::~OSD_DirectoryIterator ( )
inline

Member Function Documentation

◆ Destroy()

void OSD_DirectoryIterator::Destroy ( )

◆ Error()

int OSD_DirectoryIterator::Error ( ) const

Returns error number if 'Failed' is TRUE.

◆ Failed()

bool OSD_DirectoryIterator::Failed ( ) const

Returns TRUE if an error occurs.

◆ Initialize()

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

Initializes the current File Directory.

◆ More()

bool OSD_DirectoryIterator::More ( )

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

◆ Next()

void OSD_DirectoryIterator::Next ( )

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

◆ Perror()

void OSD_DirectoryIterator::Perror ( )

Raises OSD_Error.

◆ Reset()

void OSD_DirectoryIterator::Reset ( )

Resets error counter to zero.

◆ Values()

OSD_Directory OSD_DirectoryIterator::Values ( )

Returns the next item found .


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