Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
FWCore
MessageService
interface
MsgContext.h
Go to the documentation of this file.
1
#ifndef FWCore_MessageService_MsgContext_h
2
#define FWCore_MessageService_MsgContext_h
3
4
#include "
FWCore/MessageService/interface/ELcontextSupplier.h
"
5
6
#include <string>
7
8
namespace
edm {
9
namespace
service {
10
11
class
MsgContext
:
public
ELcontextSupplier
12
{
13
public
:
14
MsgContext
*
clone
()
const
{
return
new
MsgContext
(*
this
); }
15
ELstring
context
()
const
{
return
context_
; }
16
ELstring
summaryContext
()
const
{
return
summary_context_
; }
17
ELstring
fullContext
()
const
{
return
context
(); }
18
19
void
setContext
(
const
std::string&
c
)
20
{
21
context_
=
c
;
22
summary_context_
=
compress
(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
edm::service::ELcontextSupplier
Definition:
ELcontextSupplier.h:38
edm::service::MsgContext::fullContext
ELstring fullContext() const
Definition:
MsgContext.h:17
edm::service::MsgContext::setContext
void setContext(const std::string &c)
Definition:
MsgContext.h:19
edm::service::MsgContext::context_
std::string context_
Definition:
MsgContext.h:27
edm::service::MsgContext::clone
MsgContext * clone() const
Definition:
MsgContext.h:14
edm::service::MsgContext::compress
std::string compress(const std::string &c) const
Definition:
MsgContext.cc:20
edm::service::MsgContext::summaryContext
ELstring summaryContext() const
Definition:
MsgContext.h:16
edm::service::MsgContext::clearContext
void clearContext()
Definition:
MsgContext.h:24
trackerHits.c
tuple c
Definition:
trackerHits.py:26
edm::service::MsgContext::context
ELstring context() const
Definition:
MsgContext.h:15
edm::service::MsgContext::summary_context_
std::string summary_context_
Definition:
MsgContext.h:28
ELcontextSupplier.h
edm::ELstring
std::string ELstring
Definition:
ELstring.h:26
edm::service::MsgContext
Definition:
MsgContext.h:11
Generated for CMSSW Reference Manual by
1.8.5