File indexing completed on 2023-03-17 11:03:08
0001 #ifndef MessageLogger_ErrorSummaryEntry_h
0002 #define MessageLogger_ErrorSummaryEntry_h
0003
0004 #include "FWCore/MessageLogger/interface/ELseverityLevel.h"
0005
0006 #include <string>
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035 namespace edm {
0036 namespace messagelogger {
0037 struct ErrorSummaryEntry {
0038 std::string category;
0039 std::string module;
0040 ELseverityLevel severity;
0041 unsigned int count;
0042 ErrorSummaryEntry(std::string const& cat, std::string const& mod, ELseverityLevel sev, unsigned int cnt = 0)
0043 : category(cat), module(mod), severity(sev), count(cnt) {}
0044 ErrorSummaryEntry() : category(), module(), severity(), count(0) {}
0045 bool operator<(ErrorSummaryEntry const& rhs) const {
0046 if (category < rhs.category)
0047 return true;
0048 if (category > rhs.category)
0049 return false;
0050 if (module < rhs.module)
0051 return true;
0052 if (module > rhs.module)
0053 return false;
0054 if (severity < rhs.severity)
0055 return true;
0056 if (severity > rhs.severity)
0057 return false;
0058 if (count < rhs.count)
0059 return true;
0060 return false;
0061 }
0062 bool operator==(ErrorSummaryEntry const& rhs) const {
0063 return ((category < rhs.category) && (module < rhs.module) && (severity < rhs.severity) && (count < rhs.count));
0064 }
0065 };
0066 }
0067 }
0068
0069 #endif