Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v29r0 (ff2e7097)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
RetCodeGuard Class Reference

Helper class to set the application return code in case of early exit (e.g. More...

#include <src/RetCodeGuard.h>

Collaboration diagram for RetCodeGuard:

Public Member Functions

 RetCodeGuard (const SmartIF< IProperty > &appmgr, int retcode)
 
void ignore ()
 
 ~RetCodeGuard ()
 

Private Attributes

SmartIF< IPropertym_appmgr
 
int m_retcode
 

Detailed Description

Helper class to set the application return code in case of early exit (e.g.

exception).

Definition at line 9 of file RetCodeGuard.h.

Constructor & Destructor Documentation

RetCodeGuard::RetCodeGuard ( const SmartIF< IProperty > &  appmgr,
int  retcode 
)
inline

Definition at line 12 of file RetCodeGuard.h.

12 : m_appmgr( appmgr ), m_retcode( retcode ) {}
SmartIF< IProperty > m_appmgr
Definition: RetCodeGuard.h:22
RetCodeGuard::~RetCodeGuard ( )
inline

Definition at line 14 of file RetCodeGuard.h.

15  {
18  }
19  }
#define UNLIKELY(x)
Definition: Kernel.h:128
SmartIF< IProperty > m_appmgr
Definition: RetCodeGuard.h:22
StatusCode setAppReturnCode(SmartIF< IProperty > &appmgr, int value, bool force=false)
Set the application return code.
Definition: AppReturnCode.h:51
constexpr int Success
Definition: AppReturnCode.h:18

Member Function Documentation

void RetCodeGuard::ignore ( )
inline

Definition at line 13 of file RetCodeGuard.h.

Member Data Documentation

SmartIF<IProperty> RetCodeGuard::m_appmgr
private

Definition at line 22 of file RetCodeGuard.h.

int RetCodeGuard::m_retcode
private

Definition at line 23 of file RetCodeGuard.h.


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