The Gaudi Framework  v33r1 (b1225454)
StatusCode::ScopedDisableChecking Class Reference

Simple RAII class to ignore unchecked StatusCode instances in a scope. More...

#include <GaudiKernel/StatusCode.h>

Public Member Functions

 ScopedDisableChecking ()
 
 ~ScopedDisableChecking ()
 

Private Attributes

bool m_enabled
 

Detailed Description

Simple RAII class to ignore unchecked StatusCode instances in a scope.

Example:

void myFunction() {
StatusCode sc1 = aFunction(); // must be checked
{
StatusCode sc2 = anotherFunction(); // automatically ignored
}
}

Definition at line 294 of file StatusCode.h.

Constructor & Destructor Documentation

◆ ScopedDisableChecking()

StatusCode::ScopedDisableChecking::ScopedDisableChecking ( )
inline

Definition at line 298 of file StatusCode.h.

300  }
static GAUDI_API bool checkingEnabled()
Definition: StatusCode.cpp:57
static GAUDI_API void disableChecking()
Definition: StatusCode.cpp:55

◆ ~ScopedDisableChecking()

StatusCode::ScopedDisableChecking::~ScopedDisableChecking ( )
inline

Definition at line 301 of file StatusCode.h.

301  {
303  }
static GAUDI_API void enableChecking()
Definition: StatusCode.cpp:53

Member Data Documentation

◆ m_enabled

bool StatusCode::ScopedDisableChecking::m_enabled
private

Definition at line 295 of file StatusCode.h.


The documentation for this class was generated from the following file: