Disk ARchive  2.7.15
Full featured and portable backup and archiving tool
Public Member Functions | Private Attributes | List of all members
libdar::exclude_dir_mask Class Reference

matches if string is the given constructor string or a sub directory of it More...

#include <mask.hpp>

+ Inheritance diagram for libdar::exclude_dir_mask:
+ Collaboration diagram for libdar::exclude_dir_mask:

Public Member Functions

 exclude_dir_mask (const std::string &p, bool case_sensit)
 the constructor to be used by libdar external programs More...
 
 exclude_dir_mask (const exclude_dir_mask &ref)=default
 
 exclude_dir_mask (exclude_dir_mask &&ref) noexcept=default
 
exclude_dir_maskoperator= (const exclude_dir_mask &ref)=default
 
exclude_dir_maskoperator= (exclude_dir_mask &&ref) noexcept=default
 
bool is_covered (const std::string &expression) const override
 inherited from the mask class
 
bool is_covered (const path &chemin) const override
 check whether the given path is covered by the mask More...
 
std::string dump (const std::string &prefix) const override
 dump in human readable form the nature of the mask More...
 
maskclone () const override
 inherited from the mask class
 
- Public Member Functions inherited from libdar::mask
 mask (const mask &ref)=default
 
 mask (mask &&ref) noexcept=default
 
maskoperator= (const mask &ref)=default
 
maskoperator= (mask &&ref) noexcept=default
 

Private Attributes

std::string chemin
 
bool case_s
 

Detailed Description

matches if string is the given constructor string or a sub directory of it

Definition at line 457 of file mask.hpp.

Constructor & Destructor Documentation

◆ exclude_dir_mask()

libdar::exclude_dir_mask::exclude_dir_mask ( const std::string &  p,
bool  case_sensit 
)
inline

the constructor to be used by libdar external programs

Parameters
[in]pis the path to compare with
[in]case_sensitwhether the mask is case sensitive or not

Definition at line 464 of file mask.hpp.

Referenced by clone().

Member Function Documentation

◆ dump()

std::string libdar::exclude_dir_mask::dump ( const std::string &  prefix) const
overridevirtual

dump in human readable form the nature of the mask

Parameters
[in]prefixused for indentation withing the output string

Implements libdar::mask.

◆ is_covered()

bool libdar::exclude_dir_mask::is_covered ( const path chemin) const
inlineoverridevirtual

check whether the given path is covered by the mask

Parameters
[in]cheminis the path to check
Returns
true if the given path is covered by the mask
Note
only libdar internally needs to call this method
this is an optional method to the previous one, it can be overwritten

Reimplemented from libdar::mask.

Definition at line 473 of file mask.hpp.

References libdar::path::is_subdir_of().


The documentation for this class was generated from the following file: