Implementation of abstract class FFilter which uses runtime compiled and evaluated expressions to determine the inclusion of files or directories. Instances of this type can be created with outer classes' method SPFileFilter CreateFilter(const String&) and, for example, be attached to fields FileFilter, DirectoryFilterPreRecursion and DirectoryFilterPostRecursion of class ScanParameters.
- Availability
- This class is available only if the module ALib Expressions is included in the ALib Build.
Definition at line 163 of file fileexpressions.hpp.
#include <fileexpressions.hpp>
|
| virtual bool | Includes (const FTFile &node, const PathString &parentPath) override |
|
virtual | ~FFilter ()=default |
| | Destructor.
|
◆ expression
| Expression alib::filetree::FileExpressions::Filter::expression |
|
protected |
◆ fex
◆ scope
◆ Filter()
◆ Includes()
| virtual bool alib::filetree::FileExpressions::Filter::Includes |
( |
const FTFile & | node, |
|
|
const PathString & | parentPath ) |
|
inlineoverridevirtual |
The filter method.
- Parameters
-
| node | The node in the file-tree to examine. |
| parentPath | The absolute path to the parent directory that the file resides in. |
- Returns
- The result determines, whether the given file or directory has passed the filter or not. Consequently,
true means "passed" and false means "filtered out".
Implements alib::filetree::FFilter.
Definition at line 192 of file fileexpressions.hpp.
The documentation for this class was generated from the following files: