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

matches if string is exactly the given mask (no wilde card expression) More...

#include <mask.hpp>

+ Inheritance diagram for libdar::same_path_mask:
+ Collaboration diagram for libdar::same_path_mask:

Public Member Functions

 same_path_mask (const std::string &p, bool case_sensit)
 the constructor to be used by libdar external programs More...
 
 same_path_mask (const same_path_mask &ref)=default
 
 same_path_mask (same_path_mask &&ref) noexcept=default
 
same_path_maskoperator= (const same_path_mask &ref)=default
 
same_path_maskoperator= (same_path_mask &&ref) noexcept=default
 
bool is_covered (const std::string &chemin) const override
 inherited from the mask class More...
 
std::string dump (const std::string &prefix) const override
 inherited from the mask class More...
 
maskclone () const override
 inherited from the mask class More...
 
- 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
 
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 maskclone () const =0
 

Private Attributes

std::string chemin
 
bool case_s
 

Detailed Description

matches if string is exactly the given mask (no wilde card expression)

Definition at line 426 of file mask.hpp.

Constructor & Destructor Documentation

◆ same_path_mask()

libdar::same_path_mask::same_path_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 433 of file mask.hpp.

Referenced by clone().

Member Function Documentation

◆ clone()

mask * libdar::same_path_mask::clone ( ) const
inlineoverridevirtual

inherited from the mask class

Implements libdar::mask.

Definition at line 447 of file mask.hpp.

References same_path_mask().

◆ dump()

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

inherited from the mask class

Implements libdar::mask.

◆ is_covered()

bool libdar::same_path_mask::is_covered ( const std::string &  chemin) const
overridevirtual

inherited from the mask class

Implements libdar::mask.

Member Data Documentation

◆ case_s

bool libdar::same_path_mask::case_s
private

Definition at line 451 of file mask.hpp.

◆ chemin

std::string libdar::same_path_mask::chemin
private

Definition at line 450 of file mask.hpp.


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