artdaq_mfextensions  v1_02_02
suppress.cc
1 #include "mfextensions/Extensions/suppress.hh"
2 
3 suppress::suppress(std::string const& name)
4  : name_(name)
5  , expr_(regex_t(name))
6  , what_()
7  , in_use_(true) {}
8 
9 bool suppress::match(std::string const& name)
10 {
11  if (!in_use_) return false;
12  return boost::regex_match(name, what_, expr_);
13 }
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:9