#include <FileFilter.h>
|
| virtual bool | Accept (LPCTSTR, LPCTSTR lpszName, const CFileInfo &ZIP_UNUSED info) |
| virtual bool | Accept (LPCTSTR ZIP_UNUSED lpszParentDir, LPCTSTR ZIP_UNUSED lpszName, const CFileInfo &ZIP_UNUSED info) |
| virtual bool | HandlesInversion () const |
A filter that allows filtering files by a filename mask while an enumeration process.
- See also
- Compressing Data
-
Searching in Archive
-
CDirEnumerator::Start
◆ AppliesToTypes
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.
|
◆ CNameFileFilter()
◆ Accept()
| virtual bool ZipArchiveLib::CNameFileFilter::Accept |
( |
LPCTSTR | , |
|
|
LPCTSTR | lpszName, |
|
|
const CFileInfo &ZIP_UNUSED | info ) |
|
inlineprotectedvirtual |
Accepts a file based on the filename pattern.
- Parameters
-
| lpszName | The name of the file to accept (without a path). |
| info | The structure containing the information about the current file. |
- Returns
true, if the file matches the pattern; false otherwise.
◆ AppliesToType()
| 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
◆ GetAppliesToTypes()
| int ZipArchiveLib::CNameFileFilter::GetAppliesToTypes |
( |
| ) |
|
|
inline |
Returns the file type to which this filter applies.
- Returns
- The file type to which this filter applies. It can be one or more of the AppliesToTypes values.
- See also
- SetAppliesToTypes
◆ HandlesFile()
| bool ZipArchiveLib::CNameFileFilter::HandlesFile |
( |
const CFileInfo & | info | ) |
|
|
inlinevirtual |
Returns the value indicating whether the filter can decide about processing of the info file. The CNameFileFilter returns the value depending on the GetAppliesToTypes value.
- Note
- To keep traversing directories without adding some of them to the archive, return
false from this method for the directory that should be traversed, but not added.
- Parameters
-
| info | The structure containing the information about the file. |
- Returns
true, if the info file will be evaluated by the Evaluate method; false otherwise.
- See also
- GetAppliesToTypes
-
SetAppliesToTypes
Reimplemented from ZipArchiveLib::CFileFilter.
◆ SetAppliesToTypes()
| void ZipArchiveLib::CNameFileFilter::SetAppliesToTypes |
( |
int | iType | ) |
|
|
inline |
Sets the file type to which this filter applies.
- Parameters
-
| iType | The file type to which this filter applies. It can be one or more of the AppliesToTypes values. |
- See also
- GetAppliesToTypes
The documentation for this class was generated from the following file: