eVaf
eVaf::FileFinder::Filter Struct Reference

File filter defining patterns for file names and contents. More...

#include </var/tmp/work/evaf/src/apps/FileFinder/Engine/ifilefinder.h>

Public Member Functions

 Filter ()
 
 Filter (QString const &in, QString const &en, QString const &ic, QString const &ec)
 

Public Attributes

QString excludeContent
 QRegExp expression specifying file content that is excluded from the search result. More...
 
QString excludeNames
 QRegExp expression specifying file names that are excluded from the search result. More...
 
QString includeContent
 QRegExp expression specifying file content that is included in the search result. More...
 
QString includeNames
 QRegExp expression specifying file names that are included in the search result. More...
 

Detailed Description

File filter defining patterns for file names and contents.

File name patterns are wildcards (QRegExp::WildcardUnix). Multiple patterns can be separated by comma like, for example, "*.cpp,*.h". To include a comma in the pattern, escape it with '\'.

Content patterns are regular expressions (QRegExp::RegExp).

A file matches the filter if:

  • file name matches the includeNames pattern or the includeNames pattern is empty;
  • and; file name does not match the excludeNames pattern or the excludeNames pattern is empty;
  • and; file content matches the includeContent pattern or the includeContent pattern is empty;
  • and; file content does not match the excludeContent pattern or the excludeContent patytern is empty.

Definition at line 43 of file ifilefinder.h.

Constructor & Destructor Documentation

eVaf::FileFinder::Filter::Filter ( )
inline

Definition at line 45 of file ifilefinder.h.

eVaf::FileFinder::Filter::Filter ( QString const &  in,
QString const &  en,
QString const &  ic,
QString const &  ec 
)
inline

Definition at line 48 of file ifilefinder.h.

Member Data Documentation

QString eVaf::FileFinder::Filter::excludeContent

QRegExp expression specifying file content that is excluded from the search result.

Definition at line 65 of file ifilefinder.h.

QString eVaf::FileFinder::Filter::excludeNames

QRegExp expression specifying file names that are excluded from the search result.

Definition at line 59 of file ifilefinder.h.

QString eVaf::FileFinder::Filter::includeContent

QRegExp expression specifying file content that is included in the search result.

Definition at line 62 of file ifilefinder.h.

QString eVaf::FileFinder::Filter::includeNames

QRegExp expression specifying file names that are included in the search result.

Definition at line 56 of file ifilefinder.h.


The documentation for this struct was generated from the following file: