Implementation of abstract class FFilter which uses run-time compiled and evaluated expressions to determine 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.
Definition at line 160 of file fileexpressions.hpp.
#include <fileexpressions.hpp>
Public Method Index: | |
virtual bool | Includes (const FTree::ConstCursor &node, const String &parentPath) override |
Public Method Index: inherited from FFilter | |
virtual | ~FFilter ()=default |
|
friend |
The outer class is our friend.
Definition at line 163 of file fileexpressions.hpp.
|
protected |
The compiled expression.
Definition at line 166 of file fileexpressions.hpp.
|
protected |
The scope used with this filter.
Definition at line 164 of file fileexpressions.hpp.
|
protected |
The scope used with this filter.
Definition at line 165 of file fileexpressions.hpp.
|
protected |
Protected constructor. Compiles the given expression. To create an instance of this class, use FileExpressions::CreateFilter .
pFex | The expression compiler to use. |
expressionString | The expression string. |
Definition at line 225 of file fileexpressions.cpp.
|
inlineoverridevirtual |
The filter method.
node | The node in the file-tree to examine. |
parentPath | The absolute path to the parent directory that the file resides in. |
true
means "passed" and false
means "filtered out". Implements FFilter.
Definition at line 185 of file fileexpressions.hpp.