The Gaudi Framework  v30r3 (a5ef0a68)
RetCodeGuard.h
Go to the documentation of this file.
1 #ifndef GAUDIHIVE_RETCODEGUARD_H
2 #define GAUDIHIVE_RETCODEGUARD_H
3 
6 
10 {
11 public:
12  inline RetCodeGuard( const SmartIF<IProperty>& appmgr, int retcode ) : m_appmgr( appmgr ), m_retcode( retcode ) {}
14  inline ~RetCodeGuard()
15  {
18  }
19  }
20 
21 private:
23  int m_retcode;
24 };
25 
26 #endif
#define UNLIKELY(x)
Definition: Kernel.h:122
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:22
StatusCode setAppReturnCode(SmartIF< IProperty > &appmgr, int value, bool force=false)
Set the application return code.
Definition: AppReturnCode.h:51
RetCodeGuard(const SmartIF< IProperty > &appmgr, int retcode)
Definition: RetCodeGuard.h:12
void ignore()
Definition: RetCodeGuard.h:13
constexpr int Success
Definition: AppReturnCode.h:18