35 #include "../my_config.h"
72 virtual bool is_covered(
const std::string &expression)
const = 0;
102 bool is_covered(
const std::string & expression)
const {
return val; };
123 simple_mask(
const std::string & wilde_card_expression,
bool case_sensit);
130 bool is_covered(
const std::string &expression)
const;
136 std::string the_mask;
164 bool is_covered(
const std::string & expression)
const;
171 std::string mask_exp;
174 void set_preg(
const std::string & wilde_card_expression,
210 void copy_from(
const mask &m);
243 bool is_covered(
const std::string & expression)
const {
return t_is_covered(expression); };
253 U_I
size()
const {
return lst.size(); };
263 std::vector<mask *> lst;
266 void copy_from(
const et_mask & m);
269 template<
class T>
bool t_is_covered(
const T & expression)
const
271 std::vector<mask *>::const_iterator it = lst.begin();
274 throw Erange(
"et_mask::is_covered",
dar_gettext(
"No mask in the list of mask to operate on"));
276 while(it != lst.end() && (*it)->is_covered(expression))
279 return it == lst.end();
295 bool is_covered(
const std::string & expression)
const {
return t_is_covered(expression); };
302 template<
class T>
bool t_is_covered(
const T & expression)
const
304 std::vector<mask *>::const_iterator it = lst.begin();
307 throw Erange(
"et_mask::is_covered",
dar_gettext(
"No mask to operate on in the list of mask"));
309 while(it != lst.end() && ! (*it)->is_covered(expression))
312 return it != lst.end();
331 bool is_covered(
const std::string & expression)
const {
throw SRC_BUG; };
352 same_path_mask(
const std::string &p,
bool case_sensit) { chemin = p; case_s = case_sensit; };
355 bool is_covered(
const std::string &chemin)
const;
375 exclude_dir_mask(
const std::string &p,
bool case_sensit) { chemin = p; case_s = case_sensit;};
378 bool is_covered(
const std::string &expression)
const {
throw SRC_BUG; }