CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MsgContext.h
Go to the documentation of this file.
1 #ifndef FWCore_MessageService_MsgContext_h
2 #define FWCore_MessageService_MsgContext_h
3 
5 
6 #include <string>
7 
8 namespace edm {
9 namespace service {
10 
12  {
13  public:
14  MsgContext* clone() const { return new MsgContext(*this); }
15  ELstring context() const { return context_; }
17  ELstring fullContext() const { return context(); }
18 
19  void setContext(const std::string& c)
20  {
21  context_ = c;
23  }
24  void clearContext() { context_.clear(); summary_context_.clear(); }
25 
26  private:
27  std::string context_;
28  std::string summary_context_;
29  std::string compress (const std::string& c) const;
30  };
31 
32 } // end of namespace service
33 } // end of namespace edm
34 
35 #endif // FWCore_MessageService_MsgContext_h
ELstring fullContext() const
Definition: MsgContext.h:17
void setContext(const std::string &c)
Definition: MsgContext.h:19
MsgContext * clone() const
Definition: MsgContext.h:14
std::string compress(const std::string &c) const
Definition: MsgContext.cc:20
ELstring summaryContext() const
Definition: MsgContext.h:16
ELstring context() const
Definition: MsgContext.h:15
std::string summary_context_
Definition: MsgContext.h:28
std::string ELstring
Definition: ELstring.h:26