DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
Severity.cpp File Reference
#include <assert.h>
#include <sstream>
#include <ers/ers.hpp>
Include dependency graph for Severity.cpp:

Go to the source code of this file.

Functions

 ERS_DECLARE_ISSUE (ers, BadSeverity, "string \""<< severity<< "\" does not contain valid severity",((std::string) severity)) std
 Transforms a severity type into the corresponding string.
 

Function Documentation

◆ ERS_DECLARE_ISSUE()

ERS_DECLARE_ISSUE ( ers ,
BadSeverity ,
"string \""<< severity<< "\" does not contain valid severity" ,
((std::string) severity)  )

Transforms a severity type into the corresponding string.

Parameters
sseverity
Returns
reference to string with associated text

Definition at line 18 of file Severity.cpp.

31{
32 assert( ers::Debug <= severity && severity <= ers::Fatal );
33 return SeverityNames[severity];
34}
severity
Definition Severity.hpp:26
@ Debug
Definition Severity.hpp:26
@ Fatal
Definition Severity.hpp:26