ATLAS Offline Software
Static Public Member Functions | List of all members
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) More...
 

Detailed Description

A wrapper for ClassIDSvc.

Author
Tadashi Maeno

Definition at line 20 of file PyClassIDSvc.h.

Member Function Documentation

◆ getTypeNameOfID()

static 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  }

The documentation for this struct was generated from the following file:
CHECK_WITH_CONTEXT
#define CHECK_WITH_CONTEXT(...)
Evaluate an expression and check for errors, with an explicitly specified context name.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:396
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221