artdaq_mfextensions  v1_04_00
suppress.cc
1 #include "mfextensions/Extensions/suppress.hh"
2 
3 suppress::suppress(std::string const& name)
4  : name_(name), expr_(regex_t(name)), what_(), in_use_(true) {}
5 
6 bool suppress::match(std::string const& name)
7 {
8  if (!in_use_) return false;
9  return boost::regex_match(name, what_, expr_);
10 }
suppress(std::string const &name)
Construct a suppression using the given name for regex matching
Definition: suppress.cc:3
bool match(std::string const &name)
Check if the name matches this suppression
Definition: suppress.cc:6