CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
edm::ErrorSummaryEntry Struct Reference

#include <ErrorSummaryEntry.h>

Public Member Functions

 ErrorSummaryEntry (std::string const &cat, std::string const &mod, ELseverityLevel sev, unsigned int cnt=0)
 
 ErrorSummaryEntry ()
 
bool operator< (ErrorSummaryEntry const &rhs) const
 
bool operator== (ErrorSummaryEntry const &rhs) const
 

Public Attributes

std::string category
 
unsigned int count
 
std::string module
 
ELseverityLevel severity
 

Detailed Description

Definition at line 36 of file ErrorSummaryEntry.h.

Constructor & Destructor Documentation

◆ ErrorSummaryEntry() [1/2]

edm::ErrorSummaryEntry::ErrorSummaryEntry ( std::string const &  cat,
std::string const &  mod,
ELseverityLevel  sev,
unsigned int  cnt = 0 
)
inline

Definition at line 41 of file ErrorSummaryEntry.h.

42  : category(cat), module(mod), severity(sev), count(cnt) {}
ELseverityLevel severity
def cat(path)
Definition: eostools.py:401
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4

◆ ErrorSummaryEntry() [2/2]

edm::ErrorSummaryEntry::ErrorSummaryEntry ( )
inline

Definition at line 43 of file ErrorSummaryEntry.h.

Member Function Documentation

◆ operator<()

bool edm::ErrorSummaryEntry::operator< ( ErrorSummaryEntry const &  rhs) const
inline

Definition at line 44 of file ErrorSummaryEntry.h.

References category, count, module, and severity.

44  {
45  if (category < rhs.category)
46  return true;
47  if (category > rhs.category)
48  return false;
49  if (module < rhs.module)
50  return true;
51  if (module > rhs.module)
52  return false;
53  if (severity < rhs.severity)
54  return true;
55  if (severity > rhs.severity)
56  return false;
57  if (count < rhs.count)
58  return true;
59  return false;
60  }
ELseverityLevel severity

◆ operator==()

bool edm::ErrorSummaryEntry::operator== ( ErrorSummaryEntry const &  rhs) const
inline

Definition at line 61 of file ErrorSummaryEntry.h.

References category, count, module, and severity.

61  {
62  return ((category < rhs.category) && (module < rhs.module) && (severity < rhs.severity) && (count < rhs.count));
63  }
ELseverityLevel severity

Member Data Documentation

◆ category

std::string edm::ErrorSummaryEntry::category

Definition at line 37 of file ErrorSummaryEntry.h.

Referenced by leef::ErrorSort::operator()(), operator<(), and operator==().

◆ count

unsigned int edm::ErrorSummaryEntry::count

◆ module

std::string edm::ErrorSummaryEntry::module

◆ severity

ELseverityLevel edm::ErrorSummaryEntry::severity

Definition at line 39 of file ErrorSummaryEntry.h.

Referenced by leef::ErrorSort::operator()(), operator<(), and operator==().