#include <oscl_file_find.h>
Public Types | |
enum | error_type { E_OK = 0, E_INVALID_STATE, E_INVALID_ARG, E_PATH_TOO_LONG, E_PATH_NOT_FOUND, E_NO_MATCH, E_BUFFER_TOO_SMALL, E_NOT_IMPLEMENTED, E_MEMORY_ERROR, E_OTHER } |
enum | element_type { FILE_TYPE = 0, DIR_TYPE, INVALID_TYPE } |
Public Methods | |
OSCL_IMPORT_REF const char * | FindFirst (const char *directory, const char *pattern, char *buf, uint32 buflen) |
OSCL_IMPORT_REF const oscl_wchar * | FindFirst (const oscl_wchar *directory, const oscl_wchar *pattern, oscl_wchar *buf, uint32 buflen) |
OSCL_IMPORT_REF char * | FindNext (char *buf, uint32 buflen) |
OSCL_IMPORT_REF oscl_wchar * | FindNext (oscl_wchar *buf, uint32 buflen) |
OSCL_IMPORT_REF void | Close () |
OSCL_IMPORT_REF element_type | GetElementType () |
OSCL_IMPORT_REF error_type | GetLastError () |
OSCL_IMPORT_REF | Oscl_FileFind () |
OSCL_IMPORT_REF | ~Oscl_FileFind () |
|
|
|
|
|
constructor.
|
|
destructor. will deallocate open handles if necessary
|
|
closes the handle to directory.
|
|
Opens a directory for reading.
|
|
Finds first element matching the pattern.
|
|
Reads the next element in a directory. Note: the pointer returned by this function is not persistent and should be stored. Its scope is limited to the lifetime of the class.
|
|
Reads the next element in the directory. Note: the pointer returned by this function is not persistent and should be stored. Its scope is limited to the lifetime of the class.
|
|
Returns the element type for the last element returned
|
|
Returns the error code for the last operation.
|