Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v31r0 (aeb156f0)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
RetCodeGuard.h
Go to the documentation of this file.
1 #ifndef GAUDIHIVE_RETCODEGUARD_H
2 #define GAUDIHIVE_RETCODEGUARD_H
3 
6 
9 class RetCodeGuard {
10 public:
11  inline RetCodeGuard( const SmartIF<IProperty>& appmgr, int retcode ) : m_appmgr( appmgr ), m_retcode( retcode ) {}
13  inline ~RetCodeGuard() {
15  }
16 
17 private:
19  int m_retcode;
20 };
21 
22 #endif
#define UNLIKELY(x)
Definition: Kernel.h:89
Helper class to set the application return code in case of early exit (e.g.
Definition: RetCodeGuard.h:9
SmartIF< IProperty > m_appmgr
Definition: RetCodeGuard.h:18
StatusCode setAppReturnCode(SmartIF< IProperty > &appmgr, int value, bool force=false)
Set the application return code.
Definition: AppReturnCode.h:49
RetCodeGuard(const SmartIF< IProperty > &appmgr, int retcode)
Definition: RetCodeGuard.h:11
void ignore()
Definition: RetCodeGuard.h:12
constexpr int Success
Definition: AppReturnCode.h:16