DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
Terminates the current application. More...
#include <ExitStream.hpp>
Public Member Functions | |
ExitStream (const std::string &exit_code="1") | |
void | write (const Issue &issue) override |
![]() | |
virtual | ~OutputStream () |
Sends the issue into this stream. | |
Private Attributes | |
int | m_exit_code |
Additional Inherited Members | |
![]() | |
OutputStream () | |
OutputStream & | chained () |
virtual bool | isNull () const |
Terminates the current application.
This class implements a stream, which exits the application whenever it receives an issue. In order to employ this implementation in a stream configuration the name to be used is "exit". E.g. the following configuration will print a first issue that is passed to the FATAL ERS stream to the standard output and then terminates the application:
export DUNEDAQ_ERS_FATAL="stdout,exit"
Definition at line 36 of file ExitStream.hpp.
|
explicit |
Creates a new instance of Exit stream.
exit_code | This sting shall contain a number that will be used as the application exit status. |
|
overridevirtual |
Implements ers::OutputStream.
|
private |
Definition at line 48 of file ExitStream.hpp.