Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v31r0 (aeb156f0)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
IInterface.cpp
Go to the documentation of this file.
3 
4 namespace {
5  struct IInterfaceCategory : StatusCode::Category {
6  const char* name() const override { return "IInterface"; }
7 
8  bool isRecoverable( StatusCode::code_t ) const override { return false; }
9 
10  std::string message( StatusCode::code_t code ) const override {
11  switch ( static_cast<IInterface::Status>( code ) ) {
13  return "NO_INTERFACE";
15  return "VERSMISMATCH";
16  default:
17  return StatusCode::default_category().message( code );
18  }
19  }
20  };
21 } // namespace
22 
23 STATUSCODE_ENUM_IMPL( IInterface::Status, IInterfaceCategory )
Requested interface is not available.
The category assigned to a StatusCode.
Definition: StatusCode.h:63
virtual const char * name() const =0
Name of the category.
STL class.
Requested interface version is incompatible.
virtual bool isRecoverable(code_t code) const
Is code considered recoverable ?
Definition: StatusCode.h:78
#define STATUSCODE_ENUM_IMPL(...)
Assign a category to the StatusCode enum declared with STATUSCODE_ENUM_DECL( ENUM ) ...
Definition: StatusCode.h:248
static const Category & default_category() noexcept
Default Gaudi StatusCode category.
Definition: StatusCode.h:263
Status
Return status.
Definition: IInterface.h:297
virtual std::string message(code_t code) const
Description for code within this category.
Definition: StatusCode.h:71
unsigned long code_t
type of StatusCode value
Definition: StatusCode.h:52