| The Gaudi Framework v32r1 (f65d50dc)

IDataProviderSvc.cpp
Go to the documentation of this file.
1 #include "GaudiKernel/IDataProviderSvc.h"
2 #include "GaudiKernel/StatusCode.h"
3
4 namespace {
5 struct IDataProviderSvcCategory : StatusCode::Category {
6 const char* name() const override { return "IDataProviderSvc"; }
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<IDataProviderSvc::Status>( code ) ) {
12 case IDataProviderSvc::Status::DOUBL_OBJ_PATH:
13 return "DOUBL_OBJ_PATH";
14 case IDataProviderSvc::Status::INVALID_OBJ_PATH:
15 return "INVALID_OBJ_PATH";
16 case IDataProviderSvc::Status::INVALID_ROOT:
17 return "INVALID_ROOT";
18 case IDataProviderSvc::Status::INVALID_OBJECT:
19 return "INVALID_OBJECT";
20 case IDataProviderSvc::Status::INVALID_PARENT:
21 return "INVALID_PARENT";
22 case IDataProviderSvc::Status::OBJ_NOT_LOADED:
23 return "OBJ_NOT_LOADED";
24 case IDataProviderSvc::Status::NO_DATA_LOADER:
25 return "NO_DATA_LOADER";
26 case IDataProviderSvc::Status::INVALID_OBJ_ADDR:
27 return "INVALID_OBJ_ADDR";
28 case IDataProviderSvc::Status::DIR_NOT_EMPTY:
29 return "DIR_NOT_EMPTY";
30 case IDataProviderSvc::Status::NO_MORE_LEVELS:
31 return "NO_MORE_LEVELS";
32 case IDataProviderSvc::Status::NO_ACCESS:
33 return "NO_ACCESS";
34 default:
35 return StatusCode::default_category().message( code );
36 }
37 }
38 };
39 } // namespace
40
41 STATUSCODE_ENUM_IMPL( IDataProviderSvc::Status, IDataProviderSvcCategory )
IDataProviderSvc::Status::DOUBL_OBJ_PATH
The path for this objects is already in use.
StatusCode::Category
The category assigned to a StatusCode.
Definition: StatusCode.h:63
StatusCode::Category::name
virtual const char * name() const =0
Name of the category.
IDataProviderSvc::Status
Status
Status code definitions.
Definition: IDataProviderSvc.h:548
IDataProviderSvc::Status::INVALID_OBJ_ADDR
Invalid object address.
IDataProviderSvc::Status::NO_DATA_LOADER
No data loader available.
IDataProviderSvc::Status::INVALID_ROOT
Invalid root path object cannot be retrieved or stored.
std::string
STL class.
IDataProviderSvc.h
IDataProviderSvc::Status::OBJ_NOT_LOADED
Sorry, the requested object is not loaded.
StatusCode::Category::message
virtual std::string message(code_t code) const
Description for code within this category.
Definition: StatusCode.h:71
STATUSCODE_ENUM_IMPL
#define STATUSCODE_ENUM_IMPL(...)
Assign a category to the StatusCode enum declared with STATUSCODE_ENUM_DECL( ENUM )
Definition: StatusCode.h:248
StatusCode::Category::isRecoverable
virtual bool isRecoverable(code_t code) const
Is code considered recoverable ?
Definition: StatusCode.h:78
StatusCode::default_category
static const Category & default_category() noexcept
Default Gaudi StatusCode category.
Definition: StatusCode.h:263
IDataProviderSvc::Status::INVALID_OBJECT
Object pointer is invalid.
IDataProviderSvc::Status::DIR_NOT_EMPTY
Directory entry is NOT empty.
StatusCode.h
IDataProviderSvc::Status::NO_ACCESS
Access to the requested leaf is inhibited.
IDataProviderSvc::Status::INVALID_OBJ_PATH
Invalid path from root to object request failed.
IDataProviderSvc::Status::NO_MORE_LEVELS
Automatic data loading had to stop: maximum depth.
IDataProviderSvc::Status::INVALID_PARENT
Pointer to parent object is not valid.
StatusCode::code_t
unsigned long code_t
type of StatusCode value
Definition: StatusCode.h:52