Implementation of abstract class FFilter which uses run-time compiled and evaluated expressions to determine the inclusion of files or directories. Instances of this type can be created with outer classes' method FileExpressions::CreateFilter 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 147 of file fileexpressions.inl.
◆ FileExpressions
◆ expression
Expression alib::files::FileExpressions::Filter::expression |
|
protected |
◆ fex
◆ scope
◆ Filter()
Protected constructor. Compiles the given expression. To create an instance of this class, use FileExpressions::CreateFilter.
- Parameters
-
pFex | The expression compiler to use. |
expressionString | The expression string. |
Definition at line 256 of file fileexpressions.cpp.
◆ Includes()
virtual bool alib::files::FileExpressions::Filter::Includes |
( |
const File & | node, |
|
|
const system::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::files::FFilter.
Definition at line 172 of file fileexpressions.inl.
The documentation for this class was generated from the following files: