DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::appfwk::ValidationReport Class Reference

#include <ValidationReport.hpp>

Public Types

enum  Severity {
  Fatal , Error , Warning , Info ,
  Ignored
}
 

Public Member Functions

 ValidationReport (Severity sev, std::string app, std::string module, std::string command, std::string message)
 
std::string severity_string ()
 
Severity get_severity () const
 
std::string get_app () const
 
std::string get_module () const
 
std::string get_command () const
 
std::string get_message () const
 

Private Attributes

Severity m_severity
 
std::string m_app
 
std::string m_module
 
std::string m_command
 
std::string m_message
 

Detailed Description

Definition at line 19 of file ValidationReport.hpp.

Member Enumeration Documentation

◆ Severity

Constructor & Destructor Documentation

◆ ValidationReport()

dunedaq::appfwk::ValidationReport::ValidationReport ( Severity sev,
std::string app,
std::string module,
std::string command,
std::string message )
inline

Definition at line 31 of file ValidationReport.hpp.

Member Function Documentation

◆ get_app()

std::string dunedaq::appfwk::ValidationReport::get_app ( ) const
inline

Definition at line 58 of file ValidationReport.hpp.

58{ return m_app; }

◆ get_command()

std::string dunedaq::appfwk::ValidationReport::get_command ( ) const
inline

Definition at line 60 of file ValidationReport.hpp.

60{ return m_command; }

◆ get_message()

std::string dunedaq::appfwk::ValidationReport::get_message ( ) const
inline

Definition at line 61 of file ValidationReport.hpp.

61{ return m_message; }

◆ get_module()

std::string dunedaq::appfwk::ValidationReport::get_module ( ) const
inline

Definition at line 59 of file ValidationReport.hpp.

59{ return m_module; }

◆ get_severity()

Severity dunedaq::appfwk::ValidationReport::get_severity ( ) const
inline

Definition at line 57 of file ValidationReport.hpp.

57{ return m_severity; }

◆ severity_string()

std::string dunedaq::appfwk::ValidationReport::severity_string ( )
inline

Definition at line 40 of file ValidationReport.hpp.

41 {
42 switch (m_severity) {
43 case Severity::Fatal:
44 return "Fatal";
45 case Severity::Error:
46 return "Error";
48 return "Warning";
49 case Severity::Info:
50 return "Info";
52 return "Debug";
53 }
54 return "UNKNOWN";
55 }

Member Data Documentation

◆ m_app

std::string dunedaq::appfwk::ValidationReport::m_app
private

Definition at line 65 of file ValidationReport.hpp.

◆ m_command

std::string dunedaq::appfwk::ValidationReport::m_command
private

Definition at line 67 of file ValidationReport.hpp.

◆ m_message

std::string dunedaq::appfwk::ValidationReport::m_message
private

Definition at line 68 of file ValidationReport.hpp.

◆ m_module

std::string dunedaq::appfwk::ValidationReport::m_module
private

Definition at line 66 of file ValidationReport.hpp.

◆ m_severity

Severity dunedaq::appfwk::ValidationReport::m_severity
private

Definition at line 64 of file ValidationReport.hpp.


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