Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
namespace
edm {
5
class
EventProcessor;
6
class
RootHandlers
{
7
private
:
8
struct
WarningSentry
{
9
WarningSentry
(
RootHandlers
* iHandler):
m_handler
(iHandler){
10
m_handler
->
ignoreWarnings_
();
11
};
12
~WarningSentry
() {
13
m_handler
->
enableWarnings_
();
14
}
15
RootHandlers
*
m_handler
;
16
};
17
friend
struct
edm::RootHandlers::WarningSentry
;
18
friend
class
edm::EventProcessor
;
19
20
public
:
21
RootHandlers
() {}
22
virtual
~RootHandlers
() {}
23
24
template
<
typename
F>
25
void
ignoreWarningsWhileDoing
(
F
iFunc) {
26
WarningSentry
sentry(
this
);
27
iFunc();
28
}
29
30
private
:
31
virtual
void
willBeUsingThreads
() = 0;
32
virtual
void
initializeThisThreadForUse
() = 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:25
edm::RootHandlers::WarningSentry::WarningSentry
WarningSentry(RootHandlers *iHandler)
Definition:
RootHandlers.h:9
edm::RootHandlers
Definition:
RootHandlers.h:6
edm::RootHandlers::willBeUsingThreads
virtual void willBeUsingThreads()=0
edm::RootHandlers::enableWarnings_
virtual void enableWarnings_()=0
edm::RootHandlers::RootHandlers
RootHandlers()
Definition:
RootHandlers.h:21
edm::RootHandlers::WarningSentry
Definition:
RootHandlers.h:8
edm::RootHandlers::initializeThisThreadForUse
virtual void initializeThisThreadForUse()=0
edm::RootHandlers::WarningSentry::m_handler
RootHandlers * m_handler
Definition:
RootHandlers.h:15
edm::RootHandlers::~RootHandlers
virtual ~RootHandlers()
Definition:
RootHandlers.h:22
edm::EventProcessor
Definition:
EventProcessor.h:60
edm::RootHandlers::WarningSentry::~WarningSentry
~WarningSentry()
Definition:
RootHandlers.h:12
F
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
Definition:
blowfish.cc:281
edm::RootHandlers::ignoreWarnings_
virtual void ignoreWarnings_()=0
Generated for CMSSW Reference Manual by
1.8.5