![]()  | 
  
    Disk ARchive 2.8.1
    
   Full featured and portable backup and archiving tool 
   | 
 
the mask_list class, matches string that are present in a given file More...
#include <mask_list.hpp>
 Inheritance diagram for libdar::mask_list:
 Collaboration diagram for libdar::mask_list:Public Member Functions | |
| mask_list (const std::string &filename_list_st, bool case_sensit, const path &prefix, bool include, const std::deque< std::string > &eol_list=std::deque< std::string >()) | |
| the constructor  More... | |
| mask_list (const mask_list &ref)=default | |
| mask_list (mask_list &&ref)=default | |
| mask_list & | operator= (const mask_list &ref)=default | 
| mask_list & | operator= (mask_list &&ref) noexcept=default | 
| virtual bool | is_covered (const std::string &expression) const override | 
| inherited from the mask class  More... | |
| virtual mask * | clone () const override | 
| inherited from the mask class  More... | |
| U_I | size () const | 
| routing only necessary for doing some testing  More... | |
| virtual std::string | dump (const std::string &prefix) const override | 
| output the listing content  More... | |
  Public Member Functions inherited from libdar::mask | |
| 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 | 
Private Attributes | |
| std::deque< std::string > | contenu | 
| U_I | taille | 
| bool | case_s | 
| bool | including | 
| eols | cutter | 
the mask_list class, matches string that are present in a given file
the given file must contain one entry per line (thus no carriage return is allowed in a given entry). Note that the file listed in the file may have a relative path or an absolute path.
Definition at line 52 of file mask_list.hpp.
| libdar::mask_list::mask_list | ( | const std::string & | filename_list_st, | 
| bool | case_sensit, | ||
| const path & | prefix, | ||
| bool | include, | ||
| const std::deque< std::string > & | eol_list = std::deque< std::string >()  | 
        ||
| ) | 
the constructor
| [in] | filename_list_st | is the path to the file listing the filename to select for the operation | 
| [in] | case_sensit | whether comparison is case sensitive or not | 
| [in] | prefix | add this prefix to relative paths of the list. The prefix should be either absolute, or path::FAKE_ROOT (if the operation does not involve an fs_root - testing, listing, merging operations for example) | 
| [in] | include | whether the mask_list is used for file inclusion or file exclusion | 
| [in] | eol_list | list of string that mean the end of a line providing an empty list as is the default value, means the list { "\n" , "\n\r" } for backward compatibility | 
Referenced by clone().
      
  | 
  inlineoverridevirtual | 
inherited from the mask class
Implements libdar::mask.
Definition at line 92 of file mask_list.hpp.
References mask_list().
      
  | 
  overridevirtual | 
output the listing content
Implements libdar::mask.
      
  | 
  overridevirtual | 
inherited from the mask class
Implements libdar::mask.
      
  | 
  inline | 
routing only necessary for doing some testing
Definition at line 95 of file mask_list.hpp.
      
  | 
  private | 
Definition at line 104 of file mask_list.hpp.
      
  | 
  private | 
Definition at line 102 of file mask_list.hpp.
      
  | 
  private | 
Definition at line 106 of file mask_list.hpp.
      
  | 
  private | 
Definition at line 105 of file mask_list.hpp.
      
  | 
  private | 
Definition at line 103 of file mask_list.hpp.