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