CMS 3D CMS Logo

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  {
10  kInfo,
11  kWarning,
12  kError,
13  kSysError,
14  kFatal
15  };

Constructor & Destructor Documentation

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

Definition at line 31 of file RootHandlers.h.

31 {}

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 34 of file RootHandlers.h.

References enableWarnings_(), ignoreWarnings_(), hcalDigis_cfi::level, and willBeUsingThreads().

34  {
35  WarningSentry sentry(this,level);
36  iFunc();
37  }
virtual void edm::RootHandlers::willBeUsingThreads ( )
privatepure virtual

Friends And Related Function Documentation

friend class edm::EventProcessor
friend

Definition at line 28 of file RootHandlers.h.

friend struct edm::RootHandlers::WarningSentry
friend

Definition at line 27 of file RootHandlers.h.