#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 286 of file StatusCode.h.
286#define STATUSCODE_ENUM_DECL( ENUM ) \
287 template <> \
288 struct is_StatusCode_enum<ENUM> : std::true_type { \
289 static const StatusCode::Category& instance; \
290 };
◆ 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 297 of file StatusCode.h.
297#define STATUSCODE_ENUM_IMPL_1( ENUM ) \
298 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 300 of file StatusCode.h.
300#define STATUSCODE_ENUM_IMPL_2( ENUM, CATEGORY ) \
301 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 325 of file StatusCode.h.
325 {
330}
code_t m_code
The status code value.
unsigned long code_t
type of StatusCode value
const Category * m_cat
The status code category.