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

Null stream. More...

#include <NullStream.hpp>

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

Public Member Functions

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

Additional Inherited Members

- Protected Member Functions inherited from ers::OutputStream
 OutputStream ()
 
OutputStreamchained ()
 

Detailed Description

Null stream.

This stream implementation silently discards any issue that is sent to it. In order to employ this implementation in a stream configuration the name to be used is "null". E.g. the following configuration will result in no output been produced for the ERROR stream:

    export DUNEDAQ_ERS_ERROR="null"
Author
Serguei Kolos

Definition at line 35 of file NullStream.hpp.

Member Function Documentation

◆ isNull()

bool ers::NullStream::isNull ( ) const
inlineoverridevirtual

Reimplemented from ers::OutputStream.

Definition at line 40 of file NullStream.hpp.

41 { return true; }

◆ write()

void ers::NullStream::write ( const Issue & )
inlineoverridevirtual

Implements ers::OutputStream.

Definition at line 37 of file NullStream.hpp.

38 { ; }

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