CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LoggedErrorsSummary.cc
Go to the documentation of this file.
3 
4 // Change log
5 //
6 // 1 mf 8/25/08 First implementation
7 //
8 // 2 mf 6/22/09 Change to use severity in the key by using entry as key
9 // Also, LoggedErrorsOnlySummary()
10 namespace edm {
11 
15  return ret;
16 }
17 
21  return ret;
22 }
23 
26 }
27 
28 std::vector<ErrorSummaryEntry> LoggedErrorsSummary() {
29  std::vector<ErrorSummaryEntry> v;
33  i != end; ++i) {
34  e = i->first; // sets category, module and severity ChangeLog 2
35  e.count = (i->second); // count is 0 in key; set it to correct value
36  v.push_back(e);
37  }
40  return v;
41 }
42 
43 std::vector<ErrorSummaryEntry> LoggedErrorsOnlySummary() { // ChangeLog 2
44  std::vector<ErrorSummaryEntry> v;
48  i != end; ++i) {
49  e = i->first;
50  if (e.severity >= edm::ELerror) {
51  e.count = (i->second);
52  v.push_back(e);
53  }
54  }
57  return v;
58 }
59 
60 } // end namespace edm
int i
Definition: DBlmapReader.cc:9
std::vector< ErrorSummaryEntry > LoggedErrorsOnlySummary()
bool EnableLoggedErrorsSummary()
ELseverityLevel severity
std::map< ErrorSummaryMapKey, unsigned int >::iterator ErrorSummaryMapIterator
Definition: MessageSender.h:30
static bool errorSummaryIsBeingKept
Definition: MessageSender.h:57
bool DisableLoggedErrorsSummary()
std::vector< ErrorSummaryEntry > LoggedErrorsSummary()
static bool freshError
Definition: MessageSender.h:58
ELslProxy< ELerrorGen > const ELerror
static std::map< ErrorSummaryMapKey, unsigned int > errorSummaryMap
Definition: MessageSender.h:59
#define end
Definition: vmac.h:38
bool FreshErrorsExist()
#define begin
Definition: vmac.h:31