The Gaudi Framework  master (d98a2936)
IClassIDSvc.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2025 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 #pragma once
12 
13 #include <string>
14 
15 #include <GaudiKernel/ClassID.h>
16 #include <GaudiKernel/IService.h>
17 #include <GaudiKernel/StatusCode.h>
18 
24 class IClassIDSvc : virtual public IService {
25 public:
28 
31  virtual CLID nextAvailableID() const = 0;
33  virtual bool isIDInUse( const CLID& id ) const = 0;
35  virtual bool isNameInUse( const std::string& name ) const = 0;
37  virtual StatusCode getTypeNameOfID( const CLID& id, std::string& typeName ) const = 0;
39  virtual StatusCode getTypeInfoNameOfID( const CLID& id, std::string& typeInfoName ) const = 0;
41  virtual StatusCode getIDOfTypeName( const std::string& typeName, CLID& id ) const = 0;
43  virtual StatusCode getIDOfTypeInfoName( const std::string& typeInfoName, CLID& id ) const = 0;
45  virtual StatusCode setTypeForID( const CLID&, const std::string& typeName, const std::string& typeInfoName = "" ) = 0;
46 };
IService
Definition: IService.h:26
IClassIDSvc::getIDOfTypeName
virtual StatusCode getIDOfTypeName(const std::string &typeName, CLID &id) const =0
get id associated with type name (if any)
IService.h
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:64
CLID
unsigned int CLID
Class ID definition.
Definition: ClassID.h:16
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:24