#include <boost/preprocessor/facilities/overload.hpp>
#include <functional>
#include <ostream>
#include <type_traits>
#include <utility>
#include <GaudiKernel/Kernel.h>
Go to the source code of this file.
◆ STATUSCODE_ENUM_DECL
| #define STATUSCODE_ENUM_DECL |
( |
| ENUM | ) |
|
Value:template <> \
};
The category assigned to a StatusCode.
Declare an enum to be used as StatusCode value.
- Parameters
-
Definition at line 274 of file StatusCode.h.
274#define STATUSCODE_ENUM_DECL( ENUM ) \
275 template <> \
276 struct is_StatusCode_enum<ENUM> : std::true_type { \
277 static const StatusCode::Category& instance; \
278 };
◆ STATUSCODE_ENUM_IMPL
| #define STATUSCODE_ENUM_IMPL |
( |
| ... | ) |
|
◆ STATUSCODE_ENUM_IMPL_1
| #define STATUSCODE_ENUM_IMPL_1 |
( |
| ENUM | ) |
|
Value:
static const Category & default_category() noexcept
Default Gaudi StatusCode category.
Definition at line 285 of file StatusCode.h.
285#define STATUSCODE_ENUM_IMPL_1( ENUM ) \
286 const StatusCode::Category& is_StatusCode_enum<ENUM>::instance = StatusCode::default_category();
◆ STATUSCODE_ENUM_IMPL_2
| #define STATUSCODE_ENUM_IMPL_2 |
( |
| ENUM, |
|
|
| CATEGORY ) |
Value:
Definition at line 288 of file StatusCode.h.
288#define STATUSCODE_ENUM_IMPL_2( ENUM, CATEGORY ) \
289 const StatusCode::Category& is_StatusCode_enum<ENUM>::instance = CATEGORY{};
◆ operator==()
- Note
- For code values 0(FAILURE) and 1(SUCCESS) the category is ignored
-
e.g. sc==StatusCode::SUCCESS is equivalent to sc.isSuccess() for all categories
Definition at line 313 of file StatusCode.h.
313 {
318}
code_t m_code
The status code value.
unsigned long code_t
type of StatusCode value
const Category * m_cat
The status code category.