The Gaudi Framework  master (37c0b60a)
RetCodeGuard Class Reference

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

#include </builds/gaudi/Gaudi/GaudiHive/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 19 of file RetCodeGuard.h.

Constructor & Destructor Documentation

◆ RetCodeGuard()

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

Definition at line 21 of file RetCodeGuard.h.

21 : m_appmgr( appmgr ), m_retcode( retcode ) {}

◆ ~RetCodeGuard()

RetCodeGuard::~RetCodeGuard ( )
inline

Definition at line 23 of file RetCodeGuard.h.

Member Function Documentation

◆ ignore()

void RetCodeGuard::ignore ( )
inline

Definition at line 22 of file RetCodeGuard.h.

Member Data Documentation

◆ m_appmgr

SmartIF<IProperty> RetCodeGuard::m_appmgr
private

Definition at line 28 of file RetCodeGuard.h.

◆ m_retcode

int RetCodeGuard::m_retcode
private

Definition at line 29 of file RetCodeGuard.h.


The documentation for this class was generated from the following file:
Gaudi::ReturnCode::Success
constexpr int Success
Definition: AppReturnCode.h:26
gaudirun.retcode
retcode
Definition: gaudirun.py:651
RetCodeGuard::m_appmgr
SmartIF< IProperty > m_appmgr
Definition: RetCodeGuard.h:28
RetCodeGuard::m_retcode
int m_retcode
Definition: RetCodeGuard.h:29
Gaudi::setAppReturnCode
StatusCode setAppReturnCode(SmartIF< IProperty > &appmgr, int value, bool force=false)
Set the application return code.
Definition: AppReturnCode.h:59
StatusCode::ignore
const StatusCode & ignore() const
Allow discarding a StatusCode without warning.
Definition: StatusCode.h:139