32 #include "../my_config.h"
71 virtual bool is_covered(
const std::string &expression)
const = 0;
101 bool is_covered(
const std::string & expression)
const {
return val; };
122 simple_mask(
const std::string & wilde_card_expression,
bool case_sensit);
129 bool is_covered(
const std::string &expression)
const;
135 std::string the_mask;
163 bool is_covered(
const std::string & expression)
const;
170 std::string mask_exp;
173 void set_preg(
const std::string & wilde_card_expression,
209 void copy_from(
const mask &m);
242 bool is_covered(
const std::string & expression)
const {
return t_is_covered(expression); };
252 U_I
size()
const {
return lst.size(); };
262 std::vector<mask *> lst;
265 void copy_from(
const et_mask & m);
268 template<
class T>
bool t_is_covered(
const T & expression)
const
270 std::vector<mask *>::const_iterator it = lst.begin();
273 throw Erange(
"et_mask::is_covered",
dar_gettext(
"No mask in the list of mask to operate on"));
275 while(it != lst.end() && (*it)->is_covered(expression))
278 return it == lst.end();
294 bool is_covered(
const std::string & expression)
const {
return t_is_covered(expression); };
301 template<
class T>
bool t_is_covered(
const T & expression)
const
303 std::vector<mask *>::const_iterator it = lst.begin();
306 throw Erange(
"et_mask::is_covered",
dar_gettext(
"No mask to operate on in the list of mask"));
308 while(it != lst.end() && ! (*it)->is_covered(expression))
311 return it != lst.end();
330 bool is_covered(
const std::string & expression)
const {
throw SRC_BUG; };
351 same_path_mask(
const std::string &p,
bool case_sensit) { chemin = p; case_s = case_sensit; };
354 bool is_covered(
const std::string &chemin)
const;
374 exclude_dir_mask(
const std::string &p,
bool case_sensit) { chemin = p; case_s = case_sensit;};
377 bool is_covered(
const std::string &expression)
const {
throw SRC_BUG; }