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) |
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.
|
|
Calls on the MacOS file system to iterator over a directory and return information about each file in the system. This is the routine that does the actual implementation of getting the files list on MacOS. We fill in an array with the file specs that pass through the user supplied filter, if any. Otherwise all files are added to the array of file specs.
|
|
|
|
The directory we are searching in. |
|
List of CP_FileSystemSpecs that match the filter, if any. Otherwise, all files. |