1 #ifndef GAUDIKERNEL_CONVERTER_H 2 #define GAUDIKERNEL_CONVERTER_H 56 const CLID& objType()
const override;
60 virtual long i_repSvcType()
const;
92 return service_i(name, createIf, T::interfaceID(), (
void**)&psvc);
98 return service_i(type, name, T::interfaceID(), (
void**)&psvc);
114 [[
deprecated(
"will be removed in v29r0, use msgSvc() instead, see https://gitlab.cern.ch/gaudi/Gaudi/merge_requests/80")]]
124 const CLID m_classType;
155 return m_stype ==
id.m_stype && m_clid ==
id.m_clid;
164 return s <<
"CNV_" <<
id.m_stype <<
"_" <<
id.m_clid;
168 #ifndef GAUDI_NEW_PLUGIN_SERVICE 173 template <
typename S,
typename... Args>
174 static typename S::ReturnType
create(Args&&...
a1) {
175 return new T(std::forward<Args>(
a1)...);
181 #define DECLARE_CONVERTER_FACTORY(x) \ 182 DECLARE_FACTORY_WITH_CREATOR_AND_ID(x, CnvFactory< x >, \ 183 ConverterID(x::storageType(), x::classID()), Converter::Factory) 184 #define DECLARE_NAMESPACE_CONVERTER_FACTORY(n, x) \ 185 DECLARE_CONVERTER_FACTORY(n::x) 190 #define DECLARE_CONVERTER_FACTORY(x) \ 191 DECLARE_COMPONENT_WITH_ID(x, ConverterID(x::storageType(), x::classID())) 192 #define DECLARE_NAMESPACE_CONVERTER_FACTORY(n, x) \ 193 DECLARE_CONVERTER_FACTORY(n::x) 197 #endif // GAUDIKERNEL_CONVERTER_H
Base class used to implement the interfaces.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
The data converters are responsible to translate data from one representation into another...
IAddressCreator interface definition.
struct deprecated("use MergingTransformer instead")]] ListTransformer
std::ostream & operator<<(std::ostream &s, const ConverterID &id)
static S::ReturnType create(Args &&...a1)
Data provider interface definition.
bool operator==(const GaudiUtils::Allocator< T1 > &, const GaudiUtils::Allocator< T2 > &)
This class is used for returning status codes from appropriate routines.
StatusCode service(const std::string &name, T *&psvc, bool createIf=false) const
Access a service by name, creating it if it doesn't already exist.
The IMessage is the interface implemented by the message service.
The IRegistry represents the entry door to the environment any data object residing in a transient da...
ConverterID(long stype, CLID clid)
unsigned int CLID
Class ID definition.
Class wrapping the signature for a factory with any number of arguments.
Gaudi::PluginService::Factory< IConverter *, ISvcLocator * > Factory
StatusCode service(const std::string &type, const std::string &name, T *&psvc) const
Access a service by name, type creating it if it doesn't already exist.
Opaque address interface definition.
A DataObject is the base class of any identifiable object on any data store.