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