Public Member Functions | |
Constructor / Destructor | |
CP_FileIterator () | |
Constructor. | |
CP_FileIterator (const CP_FileSystemSpec &inParentDirectory, CP_FileFilter *inFilter=NULL) | |
CP_FileIterator (const CP_FileIterator &inFilterIterator) | |
virtual | ~CP_FileIterator () throw () |
Destructor. | |
Getters | |
CP_FileSystemSpec | GetDirectory () const |
File Specs List | |
CP_FileSystemSpec_Array | GetFileSpecs () |
File Filter | |
CP_FileFilter * | GetFileFilter () |
void | SetFileFilter (CP_FileFilter *inFilter) |
Protected Member Functions | |
Iteration | |
virtual void | IterateDirectory (const CP_FileSystemSpec &inParentDirectory) |
Iteration | |
virtual void | IterateDirectory (const CP_FileSystemSpec &inParentDirectory) |
Iteration | |
virtual void | IterateDirectory (const CP_FileSystemSpec &inParentDirectory) |
Protected Attributes | |
CP_FileSystemSpec | fParentDirectory |
CP_FileSystemSpec_Array | fFileSpecs |
CP_FileFilter * | fFileFilter |
|
Constructor.
|
|
Constructor.
|
|
Copy constructor.
|
|
Destructor.
|
|
Returns a CP_FileSystemSpec that represents the directory that this iterator is being used in currently.
|
|
Returns a CP_FileSystemSpec_Array that contains a list of CP_FileSystemSpecs for each item in the directory that matches the filters criteria if one is installed, otherwise all file system objects are returned.
|
|
Returns the CP_FileFilter object used with this iterator. NULL is returned if this iterator is not using a file filter.
|
|
Sets the CP_FileFilter object to use with this iterator. When this object has a filter, the filter controls which files will be returned.
|
|
CP_FileFilter object to control which files are listed. |
|
|
|
|
|
|
|
The directory we are searching in. |
|
List of CP_FileSystemSpecs that match the filter, if any. Otherwise, all files. |