The Gaudi Framework  master (37c0b60a)
IClassIDSvc.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2024 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #ifndef GAUDIKERNEL_ICLASSIDSVC_H
12 #define GAUDIKERNEL_ICLASSIDSVC_H
13 
14 #include <string>
15 
16 #include <GaudiKernel/ClassID.h>
17 #include <GaudiKernel/IService.h>
18 #include <GaudiKernel/StatusCode.h>
19 
25 class IClassIDSvc : virtual public IService {
26 public:
29 
32  virtual CLID nextAvailableID() const = 0;
34  virtual bool isIDInUse( const CLID& id ) const = 0;
36  virtual bool isNameInUse( const std::string& name ) const = 0;
38  virtual StatusCode getTypeNameOfID( const CLID& id, std::string& typeName ) const = 0;
40  virtual StatusCode getTypeInfoNameOfID( const CLID& id, std::string& typeInfoName ) const = 0;
42  virtual StatusCode getIDOfTypeName( const std::string& typeName, CLID& id ) const = 0;
44  virtual StatusCode getIDOfTypeInfoName( const std::string& typeInfoName, CLID& id ) const = 0;
46  virtual StatusCode setTypeForID( const CLID&, const std::string& typeName, const std::string& typeInfoName = "" ) = 0;
47 };
48 
49 #endif // GAUDIKERNEL_ICLASSIDSVC_H
IService
Definition: IService.h:28
IClassIDSvc::getIDOfTypeName
virtual StatusCode getIDOfTypeName(const std::string &typeName, CLID &id) const =0
get id associated with type name (if any)
IService.h
std::string
STL class.
IClassIDSvc::getIDOfTypeInfoName
virtual StatusCode getIDOfTypeInfoName(const std::string &typeInfoName, CLID &id) const =0
get id associated with type-info name (if any)
ClassID.h
StatusCode.h
IClassIDSvc::setTypeForID
virtual StatusCode setTypeForID(const CLID &, const std::string &typeName, const std::string &typeInfoName="")=0
associate type name and type-info name with clID
IClassIDSvc::getTypeInfoNameOfID
virtual StatusCode getTypeInfoNameOfID(const CLID &id, std::string &typeInfoName) const =0
get user assigned type-info name associated with clID
StatusCode
Definition: StatusCode.h:65
CLID
unsigned int CLID
Class ID definition.
Definition: ClassID.h:18
IClassIDSvc::nextAvailableID
virtual CLID nextAvailableID() const =0
get next available CLID
ConditionsStallTest.name
name
Definition: ConditionsStallTest.py:77
GaudiDict::typeName
std::string typeName(const std::type_info &typ)
Definition: Dictionary.cpp:31
IClassIDSvc::isNameInUse
virtual bool isNameInUse(const std::string &name) const =0
check if name is used
IClassIDSvc::DeclareInterfaceID
DeclareInterfaceID(IClassIDSvc, 1, 0)
InterfaceID.
IClassIDSvc::isIDInUse
virtual bool isIDInUse(const CLID &id) const =0
check if id is used
IClassIDSvc::getTypeNameOfID
virtual StatusCode getTypeNameOfID(const CLID &id, std::string &typeName) const =0
get user assigned type name associated with clID
IClassIDSvc
interface to the CLID database
Definition: IClassIDSvc.h:25