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 EventProcessor;
6  class RootHandlers {
7  private:
8  struct WarningSentry {
9  WarningSentry(RootHandlers* iHandler): m_handler(iHandler){
11  };
14  }
16  };
18  friend class edm::EventProcessor;
19 
20  public:
22  virtual ~RootHandlers () {}
23 
24  template<typename F>
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
void ignoreWarningsWhileDoing(F iFunc)
Definition: RootHandlers.h:25
WarningSentry(RootHandlers *iHandler)
Definition: RootHandlers.h:9
virtual void willBeUsingThreads()=0
virtual void enableWarnings_()=0
virtual void initializeThisThreadForUse()=0
virtual ~RootHandlers()
Definition: RootHandlers.h:22
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
Definition: blowfish.cc:281
virtual void ignoreWarnings_()=0