#include <SIBCSearchPath.h>
Public Member Functions |
|
| CSIBCSearchPath () | |
| SI_Error | AddPath (CSIBCString &in_Path) |
| SI_Error | ClearPaths () |
| SI_Error | Search (CSIBCString &file, CSIBCString &resultpath) |
| SI_Error | GetFiles (CSIBCString &in_Filter, CSIBCArray< CSIBCString * > *out_pFiles) |
| SI_Error | GetDirectories (CSIBCString &in_Filter, CSIBCArray< CSIBCString * > *out_pDirs) |
| CSIBCArray< CSIBCString * > & | GetPaths () |
This class provides an easy method for locating files within designated search paths
| SI_Error AddPath | ( | CSIBCString & | in_Path | ) |
Adds a search path to this object. Subsequent calls to CSIBCSearchPath::Search, and CSIBCSearchPath::GetFiles will look in this path for matching files.
| in_Path | String containing the full path. |
Clears all search paths associated with this object.
Searches for a file named file, in the search paths added with CSIBCSearchPath::AddPath.
| file | Filename to search for. | |
| resultpath | Contains the full path and filename of the file, if found. |
resultpath contains the path and filename. SI_FILE_NOT_FOUND - The file could not be found (resultpath is unchanged).
Returns an array of all files matching in_Filter in the search paths for this object. This function will also return any directories matching the search filter.
| in_Filter | The filename to search for (can include wildcards). | |
| out_pFiles | Pointer to an array of strings to append the full paths and filenames of files matched to in_Filter in this object's search paths. The strings added to this array must be freed by the caller. |
Function exactly like GetFiles, except that only directories matching the filter are returned.
| in_Filter | The filename to search for (can include wildcards). | |
| out_pFiles | Pointer to an array of strings to append the full paths of directories matched to in_Filter in this object's search paths. The strings added to this array must be freed by the caller. |
Returns the array containing the search paths defined for this object.