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  IClassIDSvc *pSvc = 0;
26  Gaudi::svcLocator()->service("ClassIDSvc", pSvc).ignore();
27  if (!pSvc)
28  {
29  MsgStream log(Athena::getMessageSvc(), "PyClassIDSvc");
30  log << MSG::ERROR << "could not get ClassIDSvc" << endmsg;
31  return "";
32  }
33 
34  std::string name;
35  StatusCode sc = pSvc->getTypeNameOfID (id, name);
36  if (sc.isFailure())
37  {
38  MsgStream log(Athena::getMessageSvc(), "PyClassIDSvc");
39  log << MSG::ERROR << "could not get TypeName for " << id << endmsg;
40  }
41  return name;
42  }

The documentation for this struct was generated from the following file:
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition: getMessageSvc.cxx:20
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20