CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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

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

Definition at line 48 of file ELseverityLevel.h.

48 : myLevel(lev) {}
constexpr edm::ELseverityLevel::ELseverityLevel ( int  lev)
inlinenoexcept
edm::ELseverityLevel::~ELseverityLevel ( )
defaultnoexcept
constexpr edm::ELseverityLevel::ELseverityLevel ( const ELseverityLevel )
defaultnoexcept
constexpr edm::ELseverityLevel::ELseverityLevel ( ELseverityLevel &&  )
defaultnoexcept

Member Function Documentation

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

Definition at line 61 of file ELseverityLevel.h.

References alignCSCRings::e, and myLevel.

61 { return myLevel - e.myLevel; }
constexpr int edm::ELseverityLevel::getLevel ( ) const
inlinenoexcept
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, edm::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  }
tuple ret
prodAgent to be discontinued
assert(be >=bs)
std::vector< std::string > names
constexpr ELseverityLevel& edm::ELseverityLevel::operator= ( const ELseverityLevel )
defaultnoexcept
constexpr ELseverityLevel& edm::ELseverityLevel::operator= ( ELseverityLevel &&  )
defaultnoexcept

Member Data Documentation

int edm::ELseverityLevel::myLevel
private

Definition at line 71 of file ELseverityLevel.h.

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