CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Types | Public Member Functions | Private Member Functions | Friends
edm::RootHandlers Class Referenceabstract

#include <RootHandlers.h>

Inheritance diagram for edm::RootHandlers:
edm::service::InitRootHandlers

Classes

struct  WarningSentry
 

Public Types

enum  SeverityLevel {
  SeverityLevel::kInfo, SeverityLevel::kWarning, SeverityLevel::kError, SeverityLevel::kSysError,
  SeverityLevel::kFatal
}
 

Public Member Functions

template<typename F >
void ignoreWarningsWhileDoing (F iFunc, SeverityLevel level=SeverityLevel::kWarning)
 
virtual ~RootHandlers ()
 

Private Member Functions

virtual void enableWarnings_ ()=0
 
virtual void ignoreWarnings_ (SeverityLevel level)=0
 
virtual void willBeUsingThreads ()=0
 

Friends

class edm::EventProcessor
 
struct edm::RootHandlers::WarningSentry
 

Detailed Description

Definition at line 7 of file RootHandlers.h.

Member Enumeration Documentation

Enumerator
kInfo 
kWarning 
kError 
kSysError 
kFatal 

Definition at line 9 of file RootHandlers.h.

9 { kInfo, kWarning, kError, kSysError, kFatal };

Constructor & Destructor Documentation

virtual edm::RootHandlers::~RootHandlers ( )
inlinevirtual

Definition at line 23 of file RootHandlers.h.

23 {}

Member Function Documentation

virtual void edm::RootHandlers::enableWarnings_ ( )
privatepure virtual
virtual void edm::RootHandlers::ignoreWarnings_ ( SeverityLevel  level)
privatepure virtual
template<typename F >
void edm::RootHandlers::ignoreWarningsWhileDoing ( F  iFunc,
SeverityLevel  level = SeverityLevel::kWarning 
)
inline

Definition at line 26 of file RootHandlers.h.

References testEve_cfg::level.

26  {
27  WarningSentry sentry(this, level);
28  iFunc();
29  }
tuple level
Definition: testEve_cfg.py:47
virtual void edm::RootHandlers::willBeUsingThreads ( )
privatepure virtual

Friends And Related Function Documentation

friend class edm::EventProcessor
friend

Definition at line 20 of file RootHandlers.h.

friend struct edm::RootHandlers::WarningSentry
friend

Definition at line 19 of file RootHandlers.h.