Main Page
Namespaces
Classes
Package Documentation
FWCore
Utilities
interface
RootHandlers.h
Go to the documentation of this file.
1
#ifndef FWCore_Utilities_RootHandlers_h
2
#define FWCore_Utilities_RootHandlers_h
3
4
#include "
FWCore/Utilities/interface/propagate_const.h
"
5
namespace
edm
{
6
class
EventProcessor;
7
class
RootHandlers
{
8
private
:
9
struct
WarningSentry
{
10
WarningSentry
(
RootHandlers
* iHandler):
m_handler
(iHandler){
11
m_handler
->ignoreWarnings_();
12
};
13
~WarningSentry
() {
14
m_handler
->enableWarnings_();
15
}
16
edm::propagate_const<RootHandlers*>
m_handler
;
17
};
18
friend
struct
edm::RootHandlers::WarningSentry
;
19
friend
class
edm::EventProcessor
;
20
21
public
:
22
RootHandlers
() {}
23
virtual
~RootHandlers
() {}
24
25
template
<
typename
F>
26
void
ignoreWarningsWhileDoing
(
F
iFunc) {
27
WarningSentry
sentry(
this
);
28
iFunc();
29
}
30
31
private
:
32
virtual
void
willBeUsingThreads
() = 0;
33
34
virtual
void
enableWarnings_
() = 0;
35
virtual
void
ignoreWarnings_
() = 0;
36
};
37
}
// end of namespace edm
38
39
#endif // InitRootHandlers_H
edm::RootHandlers::ignoreWarningsWhileDoing
void ignoreWarningsWhileDoing(F iFunc)
Definition:
RootHandlers.h:26
edm::propagate_const
Definition:
propagate_const.h:32
edm::RootHandlers::WarningSentry::WarningSentry
WarningSentry(RootHandlers *iHandler)
Definition:
RootHandlers.h:10
edm::RootHandlers
Definition:
RootHandlers.h:7
edm::RootHandlers::willBeUsingThreads
virtual void willBeUsingThreads()=0
edm::RootHandlers::enableWarnings_
virtual void enableWarnings_()=0
edm::RootHandlers::RootHandlers
RootHandlers()
Definition:
RootHandlers.h:22
edm::RootHandlers::WarningSentry::m_handler
edm::propagate_const< RootHandlers * > m_handler
Definition:
RootHandlers.h:16
edm::RootHandlers::WarningSentry
Definition:
RootHandlers.h:9
edm
HLT enums.
Definition:
AlignableModifier.h:17
edm::RootHandlers::~RootHandlers
virtual ~RootHandlers()
Definition:
RootHandlers.h:23
edm::EventProcessor
Definition:
EventProcessor.h:65
edm::RootHandlers::WarningSentry::~WarningSentry
~WarningSentry()
Definition:
RootHandlers.h:13
F
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
Definition:
blowfish.cc:281
propagate_const.h
edm::RootHandlers::ignoreWarnings_
virtual void ignoreWarnings_()=0
Generated for CMSSW Reference Manual by
1.8.11