138 return s <<
"CNV_" <<
id.m_stype <<
"_" <<
id.m_clid;
142#define DECLARE_CONVERTER( x ) DECLARE_COMPONENT_WITH_ID( x, ConverterID( x::storageType(), x::classID() ) )
std::ostream & operator<<(std::ostream &s, AlgsExecutionStates::State x)
Streaming of State values.
unsigned int CLID
Class ID definition.
std::ostream & operator<<(std::ostream &s, const ConverterID &id)
StatusCode fillRepRefs(IOpaqueAddress *pAddress, DataObject *pObject) override
Resolve the references of the converted object.
StatusCode setAddressCreator(IAddressCreator *creator) override
Set address creator facility.
SmartIF< IAddressCreator > m_addressCreator
Pointer to the address creation service interface.
StatusCode initialize() override
Initialize the converter.
SmartIF< ISvcLocator > & serviceLocator() const
Retrieve pointer to service locator.
const CLID m_classType
Class type the converter can handle.
StatusCode updateRepRefs(IOpaqueAddress *pAddress, DataObject *pObject) override
Update the references of an already converted object.
SmartIF< IMessageSvc > & msgSvc() const
Retrieve pointer to message service.
SmartIF< IDataManagerSvc > & dataManager() const
Get Data Manager service.
SmartIF< IDataProviderSvc > m_dataProvider
Pointer to data provider service.
SmartIF< IDataProviderSvc > & dataProvider() const override
Get Data provider service.
StatusCode updateObj(IOpaqueAddress *pAddress, DataObject *refpObject) override
Update the transient object from the other representation.
SmartIF< IConversionSvc > & conversionSvc() const override
Get conversion service the converter is connected to.
StatusCode finalize() override
Initialize the converter.
SmartIF< IConversionSvc > m_conversionSvc
Pointer to the connected conversion service.
StatusCode updateObjRefs(IOpaqueAddress *pAddress, DataObject *pObject) override
Update the references of an updated transient object.
StatusCode createObj(IOpaqueAddress *pAddress, DataObject *&refpObject) override
Create the transient representation of an object.
StatusCode setDataProvider(IDataProviderSvc *svc) override
Set Data provider service.
const CLID & objType() const override
Retrieve the class type of objects the converter produces.
SmartIF< IMessageSvc > m_messageSvc
MessageSvc reference.
StatusCode updateRep(IOpaqueAddress *pAddress, DataObject *pObject) override
Update the converted representation of a transient object.
SmartIF< IService > service(const std::string &name, const bool createIf=true) const
Return a pointer to the service identified by name (or "type/name")
StatusCode createRep(DataObject *pObject, IOpaqueAddress *&refpAddress) override
Convert the transient object to the requested representation.
Converter(long storage_type, const CLID &class_type, ISvcLocator *svc=0)
Standard Constructor.
SmartIF< ISvcLocator > m_svcLocator
Service Locator reference.
long m_storageType
Storage type.
SmartIF< IDataManagerSvc > m_dataManager
Pointer to data manager service.
StatusCode setConversionSvc(IConversionSvc *svc) override
Set conversion service the converter is connected to.
Gaudi::PluginService::Factory< IConverter *(ISvcLocator *)> Factory
virtual long i_repSvcType() const
Retrieve the class type of the data store the converter uses.
SmartIF< IAddressCreator > & addressCreator() const override
Retrieve address creator facility.
StatusCode fillObjRefs(IOpaqueAddress *pAddress, DataObject *pObject) override
Resolve the references of the created transient object.
bool operator==(const ConverterID &id) const
ConverterID(long stype, CLID clid)
A DataObject is the base class of any identifiable object on any data store.
IAddressCreator interface definition.
The data converters are responsible to translate data from one representation into another.
Data provider interface definition.
The IMessage is the interface implemented by the message service.
Opaque address interface definition.
The IRegistry represents the entry door to the environment any data object residing in a transient da...
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Small smart pointer class with automatic reference counting for IInterface.
This class is used for returning status codes from appropriate routines.