DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
appfwk
include
appfwk
ValidationReport.hpp
Go to the documentation of this file.
1
8
9
#ifndef APPFWK_INCLUDE_APPFWK_VALIDATIONREPORT_HPP_
10
#define APPFWK_INCLUDE_APPFWK_VALIDATIONREPORT_HPP_
11
12
#include <string>
13
14
namespace
dunedaq
{
15
16
namespace
appfwk
{
17
18
class
ValidationReport
19
{
20
public
:
21
enum
Severity
22
{
23
Fatal
,
24
Error
,
25
Warning
,
26
Info
,
27
Ignored
28
};
29
30
ValidationReport
(
Severity
sev, std::string app, std::string module, std::string command, std::string message)
31
:
m_severity
(sev)
32
,
m_app
(app)
33
,
m_module
(module)
34
,
m_command
(command)
35
,
m_message
(message)
36
{
37
}
38
39
std::string
severity_string
()
40
{
41
switch
(
m_severity
) {
42
case
Severity::Fatal
:
43
return
"Fatal"
;
44
case
Severity::Error
:
45
return
"Error"
;
46
case
Severity::Warning
:
47
return
"Warning"
;
48
case
Severity::Info
:
49
return
"Info"
;
50
case
Severity::Ignored
:
51
return
"Debug"
;
52
}
53
return
"UNKNOWN"
;
54
}
55
56
Severity
get_severity
()
const
{
return
m_severity
; }
57
std::string
get_app
()
const
{
return
m_app
; }
58
std::string
get_module
()
const
{
return
m_module
; }
59
std::string
get_command
()
const
{
return
m_command
; }
60
std::string
get_message
()
const
{
return
m_message
; }
61
62
private
:
63
Severity
m_severity
;
64
std::string
m_app
;
65
std::string
m_module
;
66
std::string
m_command
;
67
std::string
m_message
;
68
};
69
70
}
// namespace appfwk
71
}
// namespace dunedaq
72
73
#endif
// APPFWK_INCLUDE_APPFWK_VALIDATIONREPORT_HPP_
dunedaq::appfwk::ValidationReport::get_command
std::string get_command() const
Definition
ValidationReport.hpp:59
dunedaq::appfwk::ValidationReport::get_message
std::string get_message() const
Definition
ValidationReport.hpp:60
dunedaq::appfwk::ValidationReport::m_command
std::string m_command
Definition
ValidationReport.hpp:66
dunedaq::appfwk::ValidationReport::m_module
std::string m_module
Definition
ValidationReport.hpp:65
dunedaq::appfwk::ValidationReport::m_message
std::string m_message
Definition
ValidationReport.hpp:67
dunedaq::appfwk::ValidationReport::ValidationReport
ValidationReport(Severity sev, std::string app, std::string module, std::string command, std::string message)
Definition
ValidationReport.hpp:30
dunedaq::appfwk::ValidationReport::get_module
std::string get_module() const
Definition
ValidationReport.hpp:58
dunedaq::appfwk::ValidationReport::Severity
Severity
Definition
ValidationReport.hpp:22
dunedaq::appfwk::ValidationReport::Fatal
@ Fatal
Definition
ValidationReport.hpp:23
dunedaq::appfwk::ValidationReport::Warning
@ Warning
Definition
ValidationReport.hpp:25
dunedaq::appfwk::ValidationReport::Error
@ Error
Definition
ValidationReport.hpp:24
dunedaq::appfwk::ValidationReport::Ignored
@ Ignored
Definition
ValidationReport.hpp:27
dunedaq::appfwk::ValidationReport::Info
@ Info
Definition
ValidationReport.hpp:26
dunedaq::appfwk::ValidationReport::severity_string
std::string severity_string()
Definition
ValidationReport.hpp:39
dunedaq::appfwk::ValidationReport::m_severity
Severity m_severity
Definition
ValidationReport.hpp:63
dunedaq::appfwk::ValidationReport::get_app
std::string get_app() const
Definition
ValidationReport.hpp:57
dunedaq::appfwk::ValidationReport::get_severity
Severity get_severity() const
Definition
ValidationReport.hpp:56
dunedaq::appfwk::ValidationReport::m_app
std::string m_app
Definition
ValidationReport.hpp:64
dunedaq::appfwk
Definition
Nljs.hpp:18
dunedaq
The DUNE-DAQ namespace.
Definition
cib_utilities.cpp:5
Generated on
for DUNE-DAQ by
1.18.0