coan  6.0.1
A C/C++ Configuration Analyzer
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
dataset::driver Struct Reference

struct driver encapsulates traversal of an input dataset to select and process files. More...

#include <dataset.h>

Inheritance diagram for dataset::driver:
file_tree::traverser no_copy

Public Member Functions

unsigned done_files () const
 Get the number of files reached in the dataset.
 
unsigned error_files () const
 Get the number of files abandoned due to errors.
 
void at_file (std::string const &filename)
 Process a file in the dataset.
 
- Public Member Functions inherited from file_tree::traverser
virtual ~traverser ()=default
 Destructor.
 
void operator() (entry const &entry)
 Apply the traverser function-wise to an element of a file_tree. More...
 
virtual void enter_dir (std::string const &dirname)
 Do something (or nohting) on entering a directory. More...
 
virtual void leave_dir (std::string const &dirname)
 Do something (or nohting) on leaving a directory. More...
 

Private Attributes

unsigned _done_files = 0
 The number of files reached.
 
unsigned _error_files = 0
 The number of files abandoned due to errors.
 

Additional Inherited Members

- Protected Attributes inherited from file_tree::traverser
node const * _cur_dir = nullptr
 Pointer the node representing the latest directory that traversal has reached.
 
path_t _cur_path
 The absolute path of the object that traversal has reached.
 

Detailed Description

struct driver encapsulates traversal of an input dataset to select and process files.

Definition at line 87 of file dataset.h.


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