C/C++ User's Journal Synesis Software STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ... ATLSTL - where the Standard Template Library meets the Active Template Library COMSTL - where the Standard Template Library meets the Component Object Model InetSTL - where the Standard Template Library meets the Internet UNIXSTL - Template Software for the UNIX Operating System WinSTL - where the Standard Template Library meets the Win32 API

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

FileSearch Class Reference
[recls.c++]

This class provides functionality for executing a file search. More...

#include <reclspp_filesearch.h>

Inheritance diagram for FileSearch:

Search List of all members.

Public Methods

Construction
 FileSearch (recls_char_t const *rootDir, recls_char_t const *pattern, recls_uint32_t flags)
 Creates a search for the items identified by pattern in the directory rootDir, according to the given flags.

 ~FileSearch ()
 Destructor.


Detailed Description

This class provides functionality for executing a file search.


Constructor & Destructor Documentation

FileSearch recls_char_t const *    rootDir,
recls_char_t 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.

Parameters:
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.


Member Function Documentation

FileEntry GetCurrentEntry   [inline, inherited]
 

Returns the current entry.

Note:
The behaviour is undefined when the HasMoreElements() returns zero

recls_rc_t GetLastError   [inline, inherited]
 

Returns the last error status code for this search object.

recls_rc_t GetNext   [inline, inherited]
 

Advances the search to the next position.

recls_uint32_t GetNumOutstandingDetails   [inline, inherited]
 

Returns the number of outstanding file-entry blocks associated with this search object.

recls_bool_t HasMoreElements   [inline, inherited]
 

Returns non-zero if there is more data available.


The documentation for this class was generated from the following file:

recls Library documentation © Synesis Software Pty Ltd, 2001-2004