Public Methods | |
oaDirIter (const oaString &dirPathIn, oaDirIterModeEnum modeIn=oacAllDirIterMode) | |
oaDirIter (const oaString &dirPathIn, const oaString &wildcardNameIn, oaDirIterModeEnum modeIn=oacAllDirIterMode) | |
~oaDirIter () | |
oaBoolean | getNext (oaString &name) |
void | reset () |
Additionally, the user may optionally specify a wildcard string for name filtering.
Note that the oaDirIter only returns names of file system objects, and has no direct connection with the oaFSComponent class objects.
|
This is one of the constructors for the oaDirIter class. The user can specify whether to iterate over files, directories, or both according to the value of modeIn, as follows: oacFilesDirIterMode restrict iterator to files, oacDirsDirIterMode restrict iterator to directories oacAllDirIterMode unrestricted; iterate over both directories and files. This is the default mode. Note that the oaDirIter only returns names of file system objects, and has no direct connection with the oaFSComponent class objects.
|
|
As with the first version of the oaDirIter constructor above, this version allows the user to specify whether to iterate over files, directories, or both according to the value of modeIn, as follows: oacFilesDirIterMode restrict iterator to files oacDirsDirIterMode restrict iterator to directories oacAllDirIterMode unrestricted; iterate over both directories and files. This is the default mode. In addition, the user may optionally specify a string wildcard for name filtering. Note that the oaDirIter only returns names of file system objects, and has no direct connection with the oaFSComponent class objects.
|
|
This is the destructor for the oaDirIter class. |
|
This function returns the name of the next entry in the directory associated with this iterator. NULL is returned if all entries have been iterated. This function does not return the special directory entries "." and "..". Note that the oaDirIter only returns names of file system objects, and has no direct connection with the oaFSComponent class objects.
|
|
This function resets the iterator, causing it to starting iterating from the beginning of the directory list again.
|
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.