65 explicit selector(std::string
const & extensions = std::string());
100 void at_file(std::string
const & filename);
127 static void add(std::string
const &
path);
static selector _selector_
The selector for including files in the dataset
selector(std::string const &extensions=std::string())
Construct from a filter string.
static void add(std::string const &path)
Add files to the dataset.
unsigned _files
The number of files so far selected.
static unsigned error_files()
Get the number of files abandoned due to errors in traversal of the dataset.
unsigned done_files() const
Get the number of files reached in the dataset.
unsigned files() const
Get the number of files so far selected.
A base for classes employed to traverse a file_tree.
Encapsulates a set of directory/file trees.
A utility class to prevent copying of containing class.
bool operator()(std::string const &filename)
Say whether a file is selected for processing.
static driver _driver_
The driver for traversing dataset
Encapsulates the selection of files for processing.
static void set_filter(std::string extensions)
Specify the filtering of files in the dataset.
std::vector< std::string > _filter_extensions
A vector of the file extensions that are to be selected.
static unsigned files()
Get the number of files in the dataset.
void traverse(traverser &action)
Traverse the file_tree.
static unsigned done_files()
Get the number of files reached by traversal of the dataset
void at_file(std::string const &filename)
Process a file in the dataset.
struct driver encapsulates traversal of an input dataset to select and process files.
unsigned error_files() const
Get the number of files abandoned due to errors.
Encapsulates a filesystem path.
unsigned _error_files
The number of files abandoned due to errors.
struct dataset encapsulates the tree of input files to be processed by coan.
static file_tree _ftree_
The tree of input files.
unsigned _done_files
The number of files reached.
static void traverse()
Traverse the dataset processing the selected files.