ATLAS Offline Software
Loading...
Searching...
No Matches
PyClassIDSvc Struct Reference

A wrapper for ClassIDSvc. More...

#include <PyClassIDSvc.h>

Collaboration diagram for PyClassIDSvc:

Static Public Member Functions

static std::string getTypeNameOfID (const unsigned int id)
 get type name associated with clID (if any)

Detailed Description

A wrapper for ClassIDSvc.

Author
Tadashi Maeno

Definition at line 20 of file PyClassIDSvc.h.

Member Function Documentation

◆ getTypeNameOfID()

std::string PyClassIDSvc::getTypeNameOfID ( const unsigned int id)
inlinestatic

get type name associated with clID (if any)

Definition at line 23 of file PyClassIDSvc.h.

24 {
25 std::string name;
26 SmartIF<IClassIDSvc> clidSvc{ Gaudi::svcLocator()->service("ClassIDSvc") };
27 CHECK_WITH_CONTEXT( clidSvc.isValid(), "PyClassIDSvc", name );
28
29 CHECK_WITH_CONTEXT( clidSvc->getTypeNameOfID (id, name), "PyClassIDSvc", name );
30
31 return name;
32 }
#define CHECK_WITH_CONTEXT(...)
Evaluate an expression and check for errors, with an explicitly specified context name.

The documentation for this struct was generated from the following file: