coan
6.0.1
A C/C++ Configuration Analyzer
|
struct driver
encapsulates traversal of an input dataset to select and process files.
More...
#include <dataset.h>
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. | |
![]() | |
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 | |
![]() | |
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. | |
struct driver
encapsulates traversal of an input dataset to select and process files.