1 #ifndef MFEXTENSIONS_SUPPRESS_H
2 #define MFEXTENSIONS_SUPPRESS_H
4 #include <boost/regex.hpp>
7 typedef boost::regex regex_t;
8 typedef boost::smatch smatch_t;
19 explicit suppress(std::string
const& name);
26 bool match(std::string
const& name);
32 void use(
bool flag) { in_use_ = flag; }
suppress(std::string const &name)
Construct a suppression using the given name for regex matching
Suppress messages based on a regular expression
void use(bool flag)
Set whether the suppression is active
bool match(std::string const &name)
Check if the name matches this suppression