DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
ers::RFilterStream Class Reference

Filtering stream implementation. More...

#include <RFilterStream.hpp>

Inheritance diagram for ers::RFilterStream:
[legend]
Collaboration diagram for ers::RFilterStream:
[legend]

Public Member Functions

 RFilterStream (const std::string &format)
 
void write (const Issue &issue) override
 
- Public Member Functions inherited from ers::OutputStream
virtual ~OutputStream ()
 Sends the issue into this stream.
 

Private Member Functions

bool is_accepted (const ers::Issue &issue)
 

Private Attributes

std::vector< boost::regex > m_regInclude
 include list
 
std::vector< boost::regex > m_regExclude
 exclude list
 

Additional Inherited Members

- Protected Member Functions inherited from ers::OutputStream
 OutputStream ()
 
OutputStreamchained ()
 
virtual bool isNull () const
 

Detailed Description

Filtering stream implementation.

This stream offers basic filtering capability. It hooks up in front of another stream and filters the messages that are passed to it with respect to the given configuration. Filtering is based on using matching of the issue's function name and qualifiers with the given regular expressions. A stream configuration is composed of the stream name, that is "rfilter", followed by brackets with a comma separated list of regular expressions, where any expression can be preceded by an exclamation mark. For example:

  • rfilter(create.*,new.*) - this stream will pass messages that have originated from a function that starts with either "create" or "new" string.
  • rfilter(!create.*,!new.*) - this stream will pass messages that have originated from a function that starts with neither "create" nor "new" string.

Definition at line 39 of file RFilterStream.hpp.

Constructor & Destructor Documentation

◆ RFilterStream()

ers::RFilterStream::RFilterStream ( const std::string & format)

Member Function Documentation

◆ is_accepted()

bool ers::RFilterStream::is_accepted ( const ers::Issue & issue)
private

◆ write()

void ers::RFilterStream::write ( const Issue & issue)
overridevirtual

Implements ers::OutputStream.

Member Data Documentation

◆ m_regExclude

std::vector<boost::regex> ers::RFilterStream::m_regExclude
private

exclude list

Definition at line 50 of file RFilterStream.hpp.

◆ m_regInclude

std::vector<boost::regex> ers::RFilterStream::m_regInclude
private

include list

Definition at line 49 of file RFilterStream.hpp.


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