CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MessageSender.h
Go to the documentation of this file.
1 #ifndef FWCore_MessageLogger_MessageSender_h
2 #define FWCore_MessageLogger_MessageSender_h
3 
8 
9 #include <map>
10 
11 // Change log
12 //
13 // 1 mf 8/25/08 error summary information for LoggedErrorsSummary()
14 //
15 // 2 mf 6/22/09 add severity to LoggedErrorsSummary by using
16 // ErrorSummaryEntry as map key
17 //
18 
19 namespace edm
20 {
21 
23 typedef std::map<ErrorSummaryMapKey, unsigned int>::iterator
25 
27 {
28 public:
29  // --- birth/death:
30  MessageSender( ELseverityLevel const & sev,
31  ELstring const & id,
32  bool verbatim );
33  MessageSender( ELseverityLevel const & sev,
34  ELstring const & id );
36 
37  // --- stream out the next part of a message:
38  template< class T >
40  operator<< ( T const & t )
41  {
42  (*errorobj_p) << t;
43  return *this;
44  }
45 
46  // static data: // change log 1
48  static bool freshError;
49  static std::map<ErrorSummaryMapKey, unsigned int> errorSummaryMap;
50 
51 private:
52  // no copying:
53  MessageSender( MessageSender const & );
54  void operator = ( MessageSender const & );
55 
56  // data:
58 
59 }; // MessageSender
60 
61 
62 } // namespace edm
63 
64 
65 #endif // FWCore_MessageLogger_MessageSender_h
ErrorSummaryEntry ErrorSummaryMapKey
Definition: MessageSender.h:22
void operator=(MessageSender const &)
MessageSender & operator<<(T const &t)
Definition: MessageSender.h:40
std::map< ErrorSummaryMapKey, unsigned int >::iterator ErrorSummaryMapIterator
Definition: MessageSender.h:24
static bool errorSummaryIsBeingKept
Definition: MessageSender.h:47
static bool freshError
Definition: MessageSender.h:48
static std::map< ErrorSummaryMapKey, unsigned int > errorSummaryMap
Definition: MessageSender.h:49
MessageSender(ELseverityLevel const &sev, ELstring const &id, bool verbatim)
ErrorObj * errorobj_p
Definition: MessageSender.h:57
long double T
std::string ELstring
Definition: ELstring.h:26