wex  v21.04.0
Public Member Functions | Protected Member Functions | List of all members
wex::report::tool_dir Class Reference

Offers a dir with tool support. More...

#include <wex/report/dir.h>

Inheritance diagram for wex::report::tool_dir:
Inheritance graph
[legend]

Public Member Functions

 tool_dir (const tool &tool, const path &fullpath, const data::dir &data=data::dir())
 Constructor, provide your tool and a path. More...
 
auto & get_statistics () const
 Returns the statistics.
 
- Public Member Functions inherited from wex::dir
 dir (const path &path, const data::dir &data=data::dir())
 Constructor. More...
 
virtual ~dir ()
 Destructor.
 
virtual bool on_dir (const path &)
 Virtual interface. More...
 
const auto & data () const
 Other methods. More...
 
int find_files ()
 Finds matching files. More...
 
const auto & get_path () const
 Returns the path.
 

Protected Member Functions

bool on_file (const path &file) override
 Do something with the file. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from wex::interruptible
static bool cancel ()
 Cancel interruptible process. More...
 
static bool is_cancelled ()
 Check whether process was cancelled.
 
static bool is_running ()
 Is process running.
 
static bool start ()
 Starts interruptible process. More...
 
static void stop ()
 Stops interruptible process.
 

Detailed Description

Offers a dir with tool support.

run_tool is find_files invoked on all matching files.

Constructor & Destructor Documentation

◆ tool_dir()

wex::report::tool_dir::tool_dir ( const tool tool,
const path fullpath,
const data::dir data = data::dir() 
)

Constructor, provide your tool and a path.

setup_tool should already be called.

Member Function Documentation

◆ on_file()

bool wex::report::tool_dir::on_file ( const path )
overrideprotectedvirtual

Do something with the file.

Not made pure virtual, to allow this class to be tested by calling find_files.

Reimplemented from wex::dir.