ZipArchiveLib::CNameFileFilter Class Reference
#include <FileFilter.h>
List of all members.
Detailed Description
A filter that allows filtering files by a filename mask while an enumeration process.
- See also:
- Compressing Data
Searching in an Archive
CDirEnumerator::Start
Member Enumeration Documentation
The file type to which the CNameFileFilter filter can be applied. You can use the logical OR to combine them.
- See also:
- SetAppliesToTypes
GetAppliesToTypes
- Enumerator:
-
| toFile |
Regular files only. |
| toDirectory |
Directories only. |
| toAll |
Both regular files and directories. |
Constructor & Destructor Documentation
| ZipArchiveLib::CNameFileFilter::CNameFileFilter |
( |
LPCTSTR |
lpszPattern = _T("*.*"), |
|
|
bool |
bInverted = false, |
|
|
int |
iAppliesToTypes = toFile, |
|
|
bool |
bCaseSensitive = ZipPlatform::GetSystemCaseSensitivity() | |
|
) |
| | [inline] |
Member Function Documentation
| virtual bool ZipArchiveLib::CNameFileFilter::Accept |
( |
LPCTSTR |
lpszParentDir, |
|
|
LPCTSTR |
lpszName, |
|
|
const CFileInfo & |
info | |
|
) |
| | [inline, protected, virtual] |
This method is directly called by the Evaluate method during an enumeration process.
If this method returns true, the file will later be processed by the CDirEnumerator::Process method. If this method returns false for a directory, the directory is not enumerated at all.
The meaning of the return value can be reversed by the SetInverted method. If this filter handles the inversion internally, the return value from this method is not reversed by the Evaluate method.
- Parameters:
-
| lpszParentDir | The parent directory containing the file to accept. |
| lpszName | The name of the file to accept (without a path). |
| info | A structure containing the information about the current file. |
- Returns:
true, if the file is accepted; false otherwise.
- See also:
- Evaluate
HandlesInversion
CDirEnumerator::Start
CDirEnumerator::Process
Reimplemented from ZipArchiveLib::CFileFilter.
| bool ZipArchiveLib::CNameFileFilter::AppliesToType |
( |
int |
iType |
) |
[inline] |
Returns the value indicating whether the filter can be applied to the given iType type.
- Parameters:
-
- Returns:
true, if the filter can be applied to iType type; false otherwise.
- See also:
- SetAppliesToTypes
GetAppliesToTypes
| int ZipArchiveLib::CNameFileFilter::GetAppliesToTypes |
( |
|
) |
[inline] |
Return the file type to which this filter applies.
- Returns:
- The file type to which this filter applies. Can be one or more of the AppliesToTypes values.
- See also:
- SetAppliesToTypes
| bool ZipArchiveLib::CNameFileFilter::HandlesFile |
( |
const CFileInfo & |
info |
) |
[inline, virtual] |
| void ZipArchiveLib::CNameFileFilter::SetAppliesToTypes |
( |
int |
iType |
) |
[inline] |
Set the file type to which this filter applies.
- Parameters:
-
| iType | The file type to which this filter applies. Can be one or more of the AppliesToTypes values. |
- See also:
- GetAppliesToTypes
The documentation for this class was generated from the following file: