Main Page
Namespaces
Classes
Package Documentation
GIT Directory
WorkBook
Offline Guide
Release schedule
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
RootHandlers
{
6
private
:
7
struct
WarningSentry
{
8
WarningSentry
(
RootHandlers
* iHandler):
m_handler
(iHandler){
9
m_handler
->
ignoreWarnings_
();
10
};
11
~WarningSentry
() {
12
m_handler
->
enableWarnings_
();
13
}
14
RootHandlers
*
m_handler
;
15
};
16
friend
struct
edm::RootHandlers::WarningSentry
;
17
18
public
:
19
RootHandlers
() {}
20
virtual
~RootHandlers
() {}
21
22
template
<
typename
F>
23
void
ignoreWarningsWhileDoing
(
F
iFunc) {
24
WarningSentry
sentry(
this
);
25
iFunc();
26
}
27
private
:
28
virtual
void
enableWarnings_
() = 0;
29
virtual
void
ignoreWarnings_
() = 0;
30
};
31
}
// end of namespace edm
32
33
#endif // InitRootHandlers_H
edm::RootHandlers::ignoreWarningsWhileDoing
void ignoreWarningsWhileDoing(F iFunc)
Definition:
RootHandlers.h:23
edm::RootHandlers::WarningSentry::WarningSentry
WarningSentry(RootHandlers *iHandler)
Definition:
RootHandlers.h:8
edm::RootHandlers
Definition:
RootHandlers.h:5
edm::RootHandlers::enableWarnings_
virtual void enableWarnings_()=0
edm::RootHandlers::RootHandlers
RootHandlers()
Definition:
RootHandlers.h:19
edm::RootHandlers::WarningSentry
Definition:
RootHandlers.h:7
edm::RootHandlers::WarningSentry::m_handler
RootHandlers * m_handler
Definition:
RootHandlers.h:14
edm::RootHandlers::~RootHandlers
virtual ~RootHandlers()
Definition:
RootHandlers.h:20
edm::RootHandlers::WarningSentry::~WarningSentry
~WarningSentry()
Definition:
RootHandlers.h:11
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