suppress Class Reference

Suppress messages based on a regular expression. More...

#include <mfextensions/Extensions/suppress.hh>

List of all members.

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.

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:
name Name 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:
name Name to check
Returns:
True if name should be suppressed

Definition at line 10 of file suppress.cc.

void suppress::use ( bool  flag  )  [inline]

Set whether the suppression is active.

Parameters:
flag Whether the suppression should be active

Definition at line 33 of file suppress.hh.


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

Generated on 23 Oct 2018 for artdaq_mfextensions by  doxygen 1.6.1