Disk ARchive
2.7.15
Full featured and portable backup and archiving tool
|
the generic class, parent of all masks More...
#include <mask.hpp>
Public Member Functions | |
mask (const mask &ref)=default | |
mask (mask &&ref) noexcept=default | |
mask & | operator= (const mask &ref)=default |
mask & | operator= (mask &&ref) noexcept=default |
virtual bool | is_covered (const std::string &expression) const =0 |
check wether the given string is covered by the mask More... | |
virtual bool | is_covered (const path &chemin) const |
check whether the given path is covered by the mask More... | |
virtual std::string | dump (const std::string &prefix="") const =0 |
dump in human readable form the nature of the mask More... | |
virtual mask * | clone () const =0 |
the generic class, parent of all masks
this is a pure virtual class that is used in API call any of the following mask classes inherit from this class
|
pure virtual |
this is to be able to copy a mask without knowing its exact class and without loosing its specialized data
Implemented in libdar::mask_list, libdar::exclude_dir_mask, libdar::same_path_mask, libdar::simple_path_mask, libdar::ou_mask, libdar::et_mask, libdar::not_mask, libdar::regular_mask, libdar::simple_mask, and libdar::bool_mask.
|
pure virtual |
dump in human readable form the nature of the mask
[in] | prefix | used for indentation withing the output string |
Implemented in libdar::mask_list, libdar::exclude_dir_mask, libdar::same_path_mask, libdar::simple_path_mask, libdar::ou_mask, libdar::et_mask, libdar::not_mask, libdar::regular_mask, libdar::simple_mask, and libdar::bool_mask.
|
inlinevirtual |
check whether the given path is covered by the mask
[in] | chemin | is the path to check |
Reimplemented in libdar::exclude_dir_mask, libdar::simple_path_mask, libdar::ou_mask, libdar::et_mask, libdar::not_mask, and libdar::bool_mask.
Definition at line 84 of file mask.hpp.
References libdar::path::display(), and is_covered().
Referenced by is_covered().
|
pure virtual |
check wether the given string is covered by the mask
[in] | expression | is the filename to check |
Implemented in libdar::mask_list, libdar::exclude_dir_mask, libdar::simple_path_mask, libdar::ou_mask, libdar::et_mask, libdar::not_mask, libdar::regular_mask, libdar::simple_mask, libdar::bool_mask, and libdar::same_path_mask.
Referenced by libdar::not_mask::is_covered().