CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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){
10  };
13  }
15  };
17 
18  public:
20  virtual ~RootHandlers () {}
21 
22  template<typename F>
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
void ignoreWarningsWhileDoing(F iFunc)
Definition: RootHandlers.h:23
WarningSentry(RootHandlers *iHandler)
Definition: RootHandlers.h:8
virtual void enableWarnings_()=0
virtual ~RootHandlers()
Definition: RootHandlers.h:20
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
Definition: blowfish.cc:281
virtual void ignoreWarnings_()=0