| The Gaudi Framework v27r1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

IClassIDSvc.h
Go to the documentation of this file.
1 // dear emacs, this is -*- C++ -*-
2 #ifndef GAUDIKERNEL_ICLASSIDSVC_H
3 # define GAUDIKERNEL_ICLASSIDSVC_H
4
5 //<<<<<< INCLUDES >>>>>>
6 #include <string>
7
8 #include "GaudiKernel/IService.h"
9 #include "GaudiKernel/ClassID.h"
10 #include "GaudiKernel/StatusCode.h"
11
12 //<<<<<< FORWARD DECLARATIONS >>>>>>
13 namespace Athena {
14 class PackageInfo;
15 }
16 //<<<<<< CLASS DECLARATIONS >>>>>>
23 class IClassIDSvc : virtual public IService {
24 public:
27 virtual CLID nextAvailableID() const = 0;
29 virtual bool isIDInUse(const CLID& id) const = 0;
31 virtual bool isNameInUse(const std::string& name) const = 0;
33 virtual StatusCode getTypeNameOfID(const CLID& id, std::string& typeName) const = 0;
35 virtual StatusCode getTypeInfoNameOfID(const CLID& id, std::string& typeInfoName) const = 0;
37 virtual StatusCode getIDOfTypeName(const std::string& typeName, CLID& id) const = 0;
39 virtual StatusCode getIDOfTypeInfoName(const std::string& typeInfoName, CLID& id) const = 0;
41 virtual StatusCode getPackageInfoForID(const CLID& id, Athena::PackageInfo& info) const = 0;
43 virtual
44 StatusCode setTypePackageForID(const CLID&,
45 const std::string& typeName,
46 const Athena::PackageInfo&,
47 const std::string& typeInfoName = "") = 0;
49 static const InterfaceID& interfaceID();
50
52 virtual ~IClassIDSvc();
53 };
54
55 //<<<<<< INLINE MEMBER FUNCTIONS >>>>>>
56 inline
57 const InterfaceID&
58 IClassIDSvc::interfaceID() {
59 static const InterfaceID _IID("IClassIDSvc", 1, 0);
60 return _IID;
61 }
62
63 #endif // GAUDIKERNEL_ICLASSIDSVC_H
ClassID.h
IClassIDSvc::getTypeInfoNameOfID
virtual StatusCode getTypeInfoNameOfID(const CLID &id, std::string &typeInfoName) const =0
get user assigned type-info name associated with clID
gaudiComponentHelp.name
name
Definition: gaudiComponentHelp.py:28
IClassIDSvc::nextAvailableID
virtual CLID nextAvailableID() const =0
get next available CLID
IClassIDSvc::~IClassIDSvc
virtual ~IClassIDSvc()
destructor
IClassIDSvc::setTypePackageForID
virtual StatusCode setTypePackageForID(const CLID &, const std::string &typeName, const Athena::PackageInfo &, const std::string &typeInfoName="")=0
associate type name, package info and type-info name with clID
IClassIDSvc::isIDInUse
virtual bool isIDInUse(const CLID &id) const =0
check if id is used
IClassIDSvc::getIDOfTypeName
virtual StatusCode getIDOfTypeName(const std::string &typeName, CLID &id) const =0
get id associated with type name (if any)
std::string
STL class.
IClassIDSvc
interface to the CLID database
Definition: IClassIDSvc.h:23
IClassIDSvc::isNameInUse
virtual bool isNameInUse(const std::string &name) const =0
check if name is used
InterfaceID
Interface ID class.
Definition: IInterface.h:30
IClassIDSvc::getTypeNameOfID
virtual StatusCode getTypeNameOfID(const CLID &id, std::string &typeName) const =0
get user assigned type name associated with clID
IService
General service interface definition.
Definition: IService.h:18
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
IClassIDSvc::getIDOfTypeInfoName
virtual StatusCode getIDOfTypeInfoName(const std::string &typeInfoName, CLID &id) const =0
get id associated with type-info name (if any)
IClassIDSvc::getPackageInfoForID
virtual StatusCode getPackageInfoForID(const CLID &id, Athena::PackageInfo &info) const =0
get type name associated with clID (if any)
CLID
unsigned int CLID
Class ID definition.
Definition: ClassID.h:8
IService.h
IClassIDSvc::interfaceID
static const InterfaceID & interfaceID()
Gaudi boilerplate.
Definition: IClassIDSvc.h:58
StatusCode.h
GaudiDict::typeName
std::string typeName(const std::type_info &typ)
Definition: Dictionary.cpp:21
Athena
Definition: IClassIDSvc.h:13