artdaq_mfextensions  v1_03_05
suppress Class Reference

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 More...
 
bool match (std::string const &name)
 Check if the name matches this suppression More...
 
void use (bool flag)
 Set whether the suppression is active More...
 

Detailed Description

Suppress messages based on a regular expression

Definition at line 13 of file suppress.hh.

Constructor & Destructor Documentation

suppress::suppress ( std::string const &  name)
explicit

Construct a suppression using the given name for regex matching

Parameters
nameName to suppress

Definition at line 3 of file suppress.cc.

Member Function Documentation

bool suppress::match ( std::string const &  name)

Check if the name matches this suppression

Parameters
nameName to check
Returns
True if name should be suppressed

Definition at line 5 of file suppress.cc.

void suppress::use ( bool  flag)
inline

Set whether the suppression is active

Parameters
flagWhether the suppression should be active

Definition at line 32 of file suppress.hh.


The documentation for this class was generated from the following files: