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

matches regular expressions (see "man 7 regex") More...

#include <mask.hpp>

+ Inheritance diagram for libdar::regular_mask:
+ Collaboration diagram for libdar::regular_mask:

Public Member Functions

 regular_mask (const std::string &wilde_card_expression, bool x_case_sensit)
 the constructor to be used by libdar external programs More...
 
 regular_mask (const regular_mask &ref)
 the copy constructor
 
 regular_mask (regular_mask &&ref) noexcept
 the move constructor
 
regular_maskoperator= (const regular_mask &ref)
 the assignment operator
 
regular_maskoperator= (regular_mask &&ref) noexcept
 the move operator
 
virtual ~regular_mask ()
 destructor
 
bool is_covered (const std::string &expression) const override
 inherited from the mask class
 
std::string dump (const std::string &prefix) const override
 inherited from the mask class
 
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
 
virtual bool is_covered (const path &chemin) const
 check whether the given path is covered by the mask More...
 

Private Member Functions

void set_preg (const std::string &wilde_card_expression, bool x_case_sensit)
 
void copy_from (const regular_mask &ref)
 
void move_from (regular_mask &&ref) noexcept
 
void detruit () noexcept
 

Private Attributes

regex_t preg
 
std::string mask_exp
 used only by the copy constructor
 
bool case_sensit
 used only by the copy constructor
 

Detailed Description

matches regular expressions (see "man 7 regex")

Definition at line 173 of file mask.hpp.

Constructor & Destructor Documentation

◆ regular_mask()

libdar::regular_mask::regular_mask ( const std::string &  wilde_card_expression,
bool  x_case_sensit 
)

the constructor to be used by libdar external programs

Parameters
[in]wilde_card_expressionis the regular expression that defines the mask
[in]x_case_sensitwhether the mask is case sensitive or not

Referenced by clone().


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