| The Gaudi Framework v30r0 (c919700c)

- 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/ClassID.h"
9 #include "GaudiKernel/IService.h"
10 #include "GaudiKernel/StatusCode.h"
11
12 //<<<<<< FORWARD DECLARATIONS >>>>>>
13 namespace Athena
14 {
15 class PackageInfo;
16 }
17 //<<<<<< CLASS DECLARATIONS >>>>>>
24 class IClassIDSvc : virtual public IService
25 {
26 public:
29 virtual CLID nextAvailableID() const = 0;
31 virtual bool isIDInUse( const CLID& id ) const = 0;
33 virtual bool isNameInUse( const std::string& name ) const = 0;
35 virtual StatusCode getTypeNameOfID( const CLID& id, std::string& typeName ) const = 0;
37 virtual StatusCode getTypeInfoNameOfID( const CLID& id, std::string& typeInfoName ) const = 0;
39 virtual StatusCode getIDOfTypeName( const std::string& typeName, CLID& id ) const = 0;
41 virtual StatusCode getIDOfTypeInfoName( const std::string& typeInfoName, CLID& id ) const = 0;
43 virtual StatusCode getPackageInfoForID( const CLID& id, Athena::PackageInfo& info ) const = 0;
45 virtual StatusCode setTypePackageForID( const CLID&, const std::string& typeName, const Athena::PackageInfo&,
46 const std::string& typeInfoName = "" ) = 0;
48 static const InterfaceID& interfaceID();
49 };
50
51 //<<<<<< INLINE MEMBER FUNCTIONS >>>>>>
52 inline const InterfaceID& IClassIDSvc::interfaceID()
53 {
54 static const InterfaceID _IID( "IClassIDSvc", 1, 0 );
55 return _IID;
56 }
57
58 #endif // GAUDIKERNEL_ICLASSIDSVC_H
ClassID.h
gaudiComponentHelp.name
name
Definition: gaudiComponentHelp.py:32
std::string
STL class.
IClassIDSvc
interface to the CLID database
Definition: IClassIDSvc.h:24
InterfaceID
Interface ID class.
Definition: IInterface.h:29
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
CLID
unsigned int CLID
Class ID definition.
Definition: ClassID.h:8
IService.h
IClassIDSvc::interfaceID
static const InterfaceID & interfaceID()
Gaudi boilerplate.
Definition: IClassIDSvc.h:52
StatusCode.h
GaudiDict::typeName
std::string typeName(const std::type_info &typ)
Definition: Dictionary.cpp:23
Athena
Definition: IClassIDSvc.h:13