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 (const ELseverityLevel &) noexcept=default
 
constexpr ELseverityLevel (ELsev_ lev=ELsev_unspecified) noexcept
 
constexpr ELseverityLevel (ELseverityLevel &&) noexcept=default
 
constexpr ELseverityLevel (int lev) noexcept
 
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)
inlineconstexprnoexcept

Definition at line 48 of file ELseverityLevel.h.

48 : myLevel(lev) {}

◆ ELseverityLevel() [2/4]

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

Definition at line 49 of file ELseverityLevel.h.

49  : myLevel(lev) {
51  assert(lev < nLevels);
52  }

References cms::cuda::assert(), ELsev_noValueAssigned, and nLevels.

◆ ~ELseverityLevel()

edm::ELseverityLevel::~ELseverityLevel ( )
defaultnoexcept

◆ ELseverityLevel() [3/4]

constexpr edm::ELseverityLevel::ELseverityLevel ( const ELseverityLevel )
constexprdefaultnoexcept

◆ ELseverityLevel() [4/4]

constexpr edm::ELseverityLevel::ELseverityLevel ( ELseverityLevel &&  )
constexprdefaultnoexcept

Member Function Documentation

◆ cmp()

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

Definition at line 61 of file ELseverityLevel.h.

61 { return myLevel - e.myLevel; }

References MillePedeFileConverter_cfg::e, and myLevel.

◆ getLevel()

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

Definition at line 65 of file ELseverityLevel.h.

65 { return myLevel; }

References myLevel.

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

◆ getName()

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

Definition at line 22 of file ELseverityLevel.cc.

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  }

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().

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

Member Data Documentation

◆ myLevel

int edm::ELseverityLevel::myLevel
private

Definition at line 71 of file ELseverityLevel.h.

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

runTheMatrix.ret
ret
prodAgent to be discontinued
Definition: runTheMatrix.py:542
edm::ELseverityLevel::ELsev_highestSeverity
Definition: ELseverityLevel.h:41
edm::ELseverityLevel::ELsev_zeroSeverity
Definition: ELseverityLevel.h:33
cms::cuda::assert
assert(be >=bs)
edm::ELseverityLevel::ELsev_fwkInfo
Definition: ELseverityLevel.h:36
edm::ELseverityLevel::ELsev_severe
Definition: ELseverityLevel.h:40
names
const std::string names[nVars_]
Definition: PhotonIDValueMapProducer.cc:124
edm::ELseverityLevel::ELsev_error
Definition: ELseverityLevel.h:38
edm::ELseverityLevel::ELsev_unspecified
Definition: ELseverityLevel.h:39
edm::ELseverityLevel::ELsev_warning
Definition: ELseverityLevel.h:37
edm::ELseverityLevel::nLevels
Definition: ELseverityLevel.h:43
edm::ELseverityLevel::ELsev_success
Definition: ELseverityLevel.h:34
edm::ELseverityLevel::ELsev_noValueAssigned
Definition: ELseverityLevel.h:32
edm::ELseverityLevel::myLevel
int myLevel
Definition: ELseverityLevel.h:71
edm::ELseverityLevel::ELsev_info
Definition: ELseverityLevel.h:35
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37