CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
edm::ELseverityLevel Class Reference

#include <ELseverityLevel.h>

Public Types

enum  ELsev_ {
  ELsev_noValueAssigned = 0, ELsev_zeroSeverity, ELsev_success, ELsev_info,
  ELsev_fwkInfo, ELsev_warning, ELsev_error, ELsev_unspecified,
  ELsev_severe, ELsev_highestSeverity, nLevels
}
 

Public Member Functions

constexpr int cmp (ELseverityLevel const &e) const noexcept
 
constexpr ELseverityLevel (ELsev_ lev=ELsev_unspecified) noexcept
 
constexpr ELseverityLevel (int lev) noexcept
 
constexpr ELseverityLevel (const ELseverityLevel &) noexcept=default
 
constexpr ELseverityLevel (ELseverityLevel &&) noexcept=default
 
constexpr int getLevel () const noexcept
 
std::string_view getName () const noexcept
 
constexpr ELseverityLeveloperator= (const ELseverityLevel &) noexcept=default
 
constexpr ELseverityLeveloperator= (ELseverityLevel &&) noexcept=default
 
 ~ELseverityLevel () noexcept=default
 

Private Attributes

int myLevel
 

Detailed Description

Definition at line 26 of file ELseverityLevel.h.

Member Enumeration Documentation

◆ ELsev_

Enumerator
ELsev_noValueAssigned 
ELsev_zeroSeverity 
ELsev_success 
ELsev_info 
ELsev_fwkInfo 
ELsev_warning 
ELsev_error 
ELsev_unspecified 
ELsev_severe 
ELsev_highestSeverity 
nLevels 

Definition at line 31 of file ELseverityLevel.h.

31  {
32  ELsev_noValueAssigned = 0, // default returned by map when not found
33  ELsev_zeroSeverity, // threshold use only
34  ELsev_success, // report reaching a milestone
35  ELsev_info, // information
36  ELsev_fwkInfo, // framework
37  ELsev_warning, // warning
38  ELsev_error, // error detected
39  ELsev_unspecified, // severity was not specified
40  ELsev_severe, // future results are suspect
41  ELsev_highestSeverity, // threshold use only
42  // -----
43  nLevels // how many levels?
44  }; // ELsev_

Constructor & Destructor Documentation

◆ ELseverityLevel() [1/4]

constexpr edm::ELseverityLevel::ELseverityLevel ( ELsev_  lev = ELsev_unspecified)
inlinenoexcept

Definition at line 48 of file ELseverityLevel.h.

48 : myLevel(lev) {}

◆ ELseverityLevel() [2/4]

constexpr edm::ELseverityLevel::ELseverityLevel ( int  lev)
inlinenoexcept

◆ ~ELseverityLevel()

edm::ELseverityLevel::~ELseverityLevel ( )
defaultnoexcept

◆ ELseverityLevel() [3/4]

constexpr edm::ELseverityLevel::ELseverityLevel ( const ELseverityLevel )
defaultnoexcept

◆ ELseverityLevel() [4/4]

constexpr edm::ELseverityLevel::ELseverityLevel ( ELseverityLevel &&  )
defaultnoexcept

Member Function Documentation

◆ cmp()

constexpr int edm::ELseverityLevel::cmp ( ELseverityLevel const &  e) const
inlinenoexcept

Definition at line 61 of file ELseverityLevel.h.

References MillePedeFileConverter_cfg::e, and myLevel.

◆ getLevel()

constexpr int edm::ELseverityLevel::getLevel ( ) const
inlinenoexcept

Definition at line 65 of file ELseverityLevel.h.

References myLevel.

Referenced by DQMMessageLogger::analyze(), and leef::ErrorSort::operator()().

65 { return myLevel; }

◆ getName()

std::string_view edm::ELseverityLevel::getName ( ) const
noexcept

Definition at line 22 of file ELseverityLevel.cc.

References cms::cuda::assert(), ELsev_error, ELsev_fwkInfo, ELsev_highestSeverity, ELsev_info, ELsev_noValueAssigned, ELsev_severe, ELsev_success, ELsev_unspecified, ELsev_warning, ELsev_zeroSeverity, myLevel, names, nLevels, and runTheMatrix::ret.

Referenced by plotting.Plot::draw(), edm::service::ELstatistics::formSummary(), and edm::service::ELstatistics::summaryForJobReport().

22  {
23  static const auto names = []() {
24  std::array<const char*, nLevels> ret;
25  ret[ELsev_noValueAssigned] = "?no value?";
26  ret[ELsev_zeroSeverity] = "--";
27  ret[ELsev_success] = "Debug";
28  ret[ELsev_info] = "Info";
29  ret[ELsev_fwkInfo] = "FwkInfo";
30  ret[ELsev_warning] = "Warning";
31  ret[ELsev_error] = "Error";
32  ret[ELsev_unspecified] = "??";
33  ret[ELsev_severe] = "System";
34  ret[ELsev_highestSeverity] = "!!";
35  return ret;
36  }();
37 
39  return names[myLevel];
40  }
ret
prodAgent to be discontinued
assert(be >=bs)
const std::string names[nVars_]

◆ operator=() [1/2]

constexpr ELseverityLevel& edm::ELseverityLevel::operator= ( const ELseverityLevel )
defaultnoexcept

◆ operator=() [2/2]

constexpr ELseverityLevel& edm::ELseverityLevel::operator= ( ELseverityLevel &&  )
defaultnoexcept

Member Data Documentation

◆ myLevel

int edm::ELseverityLevel::myLevel
private

Definition at line 71 of file ELseverityLevel.h.

Referenced by cmp(), getLevel(), and getName().