coan
6.0.1
A C/C++ Configuration Analyzer
|
Encapsulates the selection of files for processing. More...
#include <dataset.h>
Public Member Functions | |
selector (std::string const &extensions=std::string()) | |
Construct from a filter string. More... | |
bool | operator() (std::string const &filename) |
Say whether a file is selected for processing. More... | |
unsigned | files () const |
Get the number of files so far selected. | |
Private Attributes | |
std::vector< std::string > | _filter_extensions |
A vector of the file extensions that are to be selected. | |
unsigned | _files |
The number of files so far selected. | |
Encapsulates the selection of files for processing.
struct selector
encapsulates the selection of files for processing that satisfy the --filter
option.
|
explicit |
Construct from a filter string.
Explicitly construct given a filter string.
extensions | An empty string or else a comma-punctuated list of the extensions of files that are to be selected. |
Definition at line 76 of file dataset.cpp.
bool dataset::selector::operator() | ( | std::string const & | filename | ) |
Say whether a file is selected for processing.
filename | The name of the file to be tested. |
Definition at line 91 of file dataset.cpp.