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

Offers a dir with reporting to a listview. More...

#include <wex/report/dir.h>

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

Public Member Functions

 dir (wex::listview *listview, const path &fullpath, const data::dir &data=data::dir())
 Constructor, provide your listview and a path.
 
- Public Member Functions inherited from wex::dir
 dir (const path &path, const data::dir &data=data::dir())
 Constructor. More...
 
virtual ~dir ()
 Destructor.
 
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_dir (const path &dir) override
 Virtual interface. More...
 
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 reporting to a listview.

All matching files and folders are added as listitem to the listview.

Member Function Documentation

◆ on_dir()

bool wex::report::dir::on_dir ( const path )
overrideprotectedvirtual

Virtual interface.

Do something with the dir. Not made pure virtual, to allow this class to be tested by calling find_files.

Reimplemented from wex::dir.

◆ on_file()

bool wex::report::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.