CMS 3D CMS Logo

WarningSummary.h
Go to the documentation of this file.
1 #ifndef EventFilter_SiStripRawToDigi_WarningSummary
2 #define EventFilter_SiStripRawToDigi_WarningSummary 1
3 
4 #include <string>
5 #include <map>
6 
7 namespace sistrip {
8  class WarningSummary {
9  public:
10  WarningSummary(const std::string& category, const std::string& name, bool debug = false)
11  : m_debug(debug), m_category(category), m_name(name) {}
12 
13  void add(const std::string& message, const std::string& details = "");
14  void printSummary() const;
15 
16  private:
17  bool m_debug;
20  std::map<std::string, std::size_t> m_warnings;
21  };
22 } // namespace sistrip
23 #endif // EventFilter_SiStripRawToDigi_WarningSummary
WarningSummary(const std::string &category, const std::string &name, bool debug=false)
void printSummary() const
std::map< std::string, std::size_t > m_warnings
sistrip classes
Definition: helper.h:70
void add(const std::string &message, const std::string &details="")
#define debug
Definition: HDRShower.cc:19