Suppress messages based on a regular expression. More...
#include <mfextensions/Extensions/suppress.hh>
Public Member Functions | |
suppress (std::string const &name) | |
Construct a suppression using the given name for regex matching. | |
bool | match (std::string const &name) |
Check if the name matches this suppression. | |
void | use (bool flag) |
Set whether the suppression is active. |
Suppress messages based on a regular expression.
Definition at line 13 of file suppress.hh.
suppress::suppress | ( | std::string const & | name | ) | [explicit] |
Construct a suppression using the given name for regex matching.
name | Name to suppress |
Definition at line 3 of file suppress.cc.
bool suppress::match | ( | std::string const & | name | ) |
Check if the name matches this suppression.
name | Name to check |
Definition at line 10 of file suppress.cc.
void suppress::use | ( | bool | flag | ) | [inline] |
Set whether the suppression is active.
flag | Whether the suppression should be active |
Definition at line 33 of file suppress.hh.