![]() |
![]() |
![]() |
![]() |
||||
![]() |
![]() |
![]() |
![]() |
||||
|
#include <recls/cpp/filesearch.hpp>
Inheritance diagram for FileSearch:
Public Member Functions | |
Operations | |
recls_rc_t | GetNext () |
Advances the search to the next position. | |
Attributes | |
recls_bool_t | HasMoreElements () const |
Returns non-zero if there is more data available. | |
FileEntry | GetCurrentEntry () const |
Returns the current entry. | |
recls_rc_t | GetLastError () const |
Returns the last error status code for this search object. | |
recls_uint32_t | GetNumOutstandingDetails () const |
Returns the number of outstanding file-entry blocks associated with this search object. | |
Static Public Member Functions | |
Operations | |
template<typename S> | |
static FileEntry | Stat (S const &path) |
Retrieves the information for the given path. |
FileSearch | ( | char_type const * | rootDir, | |
char_type const * | pattern, | |||
recls_uint32_t | flags | |||
) | [inline] |
Creates a search for the items identified by pattern
in the directory rootDir
, according to the given flags
.
rootDir | The starting directory for the search. If NULL, or the empty string, uses the current directory | |
pattern | The search pattern, e.g. "*.h". If NULL, or the empty string, uses "*.*" (Win32) or "*" (UNIX) | |
flags | A combination of enumerants from the RECLS_FLAG enumeration |
~FileSearch | ( | ) | [inline] |
Destructor.
FileSearch | ( | char_type const * | rootDir, | |
char_type const * | pattern, | |||
recls_uint32_t | flags | |||
) | [inline] |
Creates a search for the items identified by pattern
in the directory rootDir
, according to the given flags
.
rootDir | The starting directory for the search. If NULL, or the empty string, uses the current directory | |
pattern | The search pattern, e.g. "*.h". If NULL, or the empty string, uses "*.*" (Win32) or "*" (UNIX) | |
flags | A combination of enumerants from the RECLS_FLAG enumeration |
~FileSearch | ( | ) | [inline] |
Destructor.
static FileEntry Stat | ( | S const & | path | ) | [inline, static] |
Retrieves the information for the given path.
path | Absolute or relative path of the file system entry whose information is to be retrieved. | |
flags | Flags to moderate the search. Only the type flags (flags & RECLS_F_TYPEMASK) and RECLS_F_DIRECTORY_PARTS are recognised |
e
evaluates !e
to be true). recls_rc_t GetNext | ( | ) | [inline, inherited] |
recls_bool_t HasMoreElements | ( | ) | const [inline, inherited] |
Returns non-zero if there is more data available.
FileEntry GetCurrentEntry | ( | ) | const [inline, inherited] |
Returns the current entry.
HasMoreElements()
returns zero recls_rc_t GetLastError | ( | ) | const [inline, inherited] |
Returns the last error status code for this search object.
recls_uint32_t GetNumOutstandingDetails | ( | ) | const [inline, inherited] |
Returns the number of outstanding file-entry blocks associated with this search object.
|
recls Library documentation © Synesis Software Pty Ltd, 2001-2006 |