![]() |
The Gaudi Framework
v27r0
|
Base class for all conversion services. More...
#include <GaudiKernel/ConversionSvc.h>
Classes | |
class | CnvTest |
class | WorkerEntry |
Public Member Functions | |
virtual StatusCode | initialize () |
Initialize the service. More... | |
virtual StatusCode | finalize () |
stop the service. More... | |
virtual long | repSvcType () const |
Retrieve the class type of the data store the converter uses. More... | |
const CLID & | objType () const |
Implementation of IConverter: dummy call. More... | |
virtual StatusCode | setDataProvider (IDataProviderSvc *pService) |
Implementation of IConverter: Set Data provider service. More... | |
virtual SmartIF< IDataProviderSvc > & | dataProvider () const |
Implementation of IConverter: Get Data provider service. More... | |
virtual StatusCode | setConversionSvc (IConversionSvc *svc) |
Implementation of IConverter: Set conversion service the converter is connected to. More... | |
virtual SmartIF< IConversionSvc > & | conversionSvc () const |
Implementation of IConverter: Get conversion service the converter is connected to. More... | |
virtual StatusCode | setAddressCreator (IAddressCreator *creator) |
Set address creator facility. More... | |
virtual SmartIF< IAddressCreator > & | addressCreator () const |
Retrieve address creator facility. More... | |
virtual StatusCode | createObj (IOpaqueAddress *pAddress, DataObject *&refpObject) |
Implementation of IConverter: Create the transient representation of an object. More... | |
virtual StatusCode | fillObjRefs (IOpaqueAddress *pAddress, DataObject *pObject) |
Implementation of IConverter: Resolve the references of the created transient object. More... | |
virtual StatusCode | updateObj (IOpaqueAddress *pAddress, DataObject *refpObject) |
Implementation of IConverter: Update the transient object from the other representation. More... | |
virtual StatusCode | updateObjRefs (IOpaqueAddress *pAddress, DataObject *pObject) |
Implementation of IConverter: Update the references of an updated transient object. More... | |
virtual StatusCode | createRep (DataObject *pObject, IOpaqueAddress *&refpAddress) |
Implementation of IConverter: Convert the transient object to the requested representation. More... | |
virtual StatusCode | fillRepRefs (IOpaqueAddress *pAddress, DataObject *pObject) |
Implementation of IConverter: Resolve the references of the converted object. More... | |
virtual StatusCode | updateRep (IOpaqueAddress *pAddress, DataObject *pObject) |
Implementation of IConverter: Update the converted representation of a transient object. More... | |
virtual StatusCode | updateRepRefs (IOpaqueAddress *pAddress, DataObject *pObject) |
Implementation of IConverter: Update the references of an already converted object. More... | |
virtual StatusCode | addConverter (const CLID &clid) |
Add converter object to conversion service. More... | |
virtual StatusCode | addConverter (IConverter *pConverter) |
Add converter object to conversion service. More... | |
virtual StatusCode | removeConverter (const CLID &clid) |
Remove converter object from conversion service (if present). More... | |
virtual IConverter * | converter (const CLID &wanted) |
Retrieve converter from list. More... | |
virtual StatusCode | connectOutput (const std::string &outputFile, const std::string &openMode) |
Connect the output file to the service with open mode. More... | |
virtual StatusCode | connectOutput (const std::string &output) |
Connect the output file to the service. More... | |
virtual StatusCode | commitOutput (const std::string &output, bool do_commit) |
Commit pending output. More... | |
virtual StatusCode | createAddress (long svc_type, const CLID &clid, const std::string *par, const unsigned long *ip, IOpaqueAddress *&refpAddress) |
Create a Generic address using explicit arguments to identify a single object. More... | |
virtual StatusCode | convertAddress (const IOpaqueAddress *pAddress, std::string &refAddress) |
Convert an address to string form. More... | |
virtual StatusCode | createAddress (long svc_type, const CLID &clid, const std::string &refAddress, IOpaqueAddress *&refpAddress) |
Convert an address in string form to object form. More... | |
virtual StatusCode | updateServiceState (IOpaqueAddress *pAddress) |
Update state of the service. More... | |
ConversionSvc (const std::string &name, ISvcLocator *svc, long type) | |
Standard Constructor. More... | |
virtual StatusCode | initialize () |
Initialize the service. More... | |
virtual StatusCode | finalize () |
stop the service. More... | |
virtual long | repSvcType () const |
Retrieve the class type of the data store the converter uses. More... | |
const CLID & | objType () const |
Implementation of IConverter: dummy call. More... | |
virtual StatusCode | setDataProvider (IDataProviderSvc *pService) |
Implementation of IConverter: Set Data provider service. More... | |
virtual SmartIF< IDataProviderSvc > & | dataProvider () const |
Implementation of IConverter: Get Data provider service. More... | |
virtual StatusCode | setConversionSvc (IConversionSvc *svc) |
Implementation of IConverter: Set conversion service the converter is connected to. More... | |
virtual SmartIF< IConversionSvc > & | conversionSvc () const |
Implementation of IConverter: Get conversion service the converter is connected to. More... | |
virtual StatusCode | setAddressCreator (IAddressCreator *creator) |
Set address creator facility. More... | |
virtual SmartIF< IAddressCreator > & | addressCreator () const |
Retrieve address creator facility. More... | |
virtual StatusCode | createObj (IOpaqueAddress *pAddress, DataObject *&refpObject) |
Implementation of IConverter: Create the transient representation of an object. More... | |
virtual StatusCode | fillObjRefs (IOpaqueAddress *pAddress, DataObject *pObject) |
Implementation of IConverter: Resolve the references of the created transient object. More... | |
virtual StatusCode | updateObj (IOpaqueAddress *pAddress, DataObject *refpObject) |
Implementation of IConverter: Update the transient object from the other representation. More... | |
virtual StatusCode | updateObjRefs (IOpaqueAddress *pAddress, DataObject *pObject) |
Implementation of IConverter: Update the references of an updated transient object. More... | |
virtual StatusCode | createRep (DataObject *pObject, IOpaqueAddress *&refpAddress) |
Implementation of IConverter: Convert the transient object to the requested representation. More... | |
virtual StatusCode | fillRepRefs (IOpaqueAddress *pAddress, DataObject *pObject) |
Implementation of IConverter: Resolve the references of the converted object. More... | |
virtual StatusCode | updateRep (IOpaqueAddress *pAddress, DataObject *pObject) |
Implementation of IConverter: Update the converted representation of a transient object. More... | |
virtual StatusCode | updateRepRefs (IOpaqueAddress *pAddress, DataObject *pObject) |
Implementation of IConverter: Update the references of an already converted object. More... | |
virtual StatusCode | addConverter (const CLID &clid) |
Add converter object to conversion service. More... | |
virtual StatusCode | addConverter (IConverter *pConverter) |
Add converter object to conversion service. More... | |
virtual StatusCode | removeConverter (const CLID &clid) |
Remove converter object from conversion service (if present). More... | |
virtual IConverter * | converter (const CLID &wanted) |
Retrieve converter from list. More... | |
virtual StatusCode | connectOutput (const std::string &outputFile, const std::string &openMode) |
Connect the output file to the service with open mode. More... | |
virtual StatusCode | connectOutput (const std::string &output) |
Connect the output file to the service. More... | |
virtual StatusCode | commitOutput (const std::string &output, bool do_commit) |
Commit pending output. More... | |
virtual StatusCode | createAddress (long svc_type, const CLID &clid, const std::string *par, const unsigned long *ip, IOpaqueAddress *&refpAddress) |
Create a Generic address using explicit arguments to identify a single object. More... | |
virtual StatusCode | convertAddress (const IOpaqueAddress *pAddress, std::string &refAddress) |
Convert an address to string form. More... | |
virtual StatusCode | createAddress (long svc_type, const CLID &clid, const std::string &refAddress, IOpaqueAddress *&refpAddress) |
Convert an address in string form to object form. More... | |
virtual StatusCode | updateServiceState (IOpaqueAddress *pAddress) |
Update state of the service. More... | |
ConversionSvc (const std::string &name, ISvcLocator *svc, long type) | |
Standard Constructor. More... | |
![]() | |
void * | i_cast (const InterfaceID &tid) const override |
Implementation of IInterface::i_cast. More... | |
StatusCode | queryInterface (const InterfaceID &ti, void **pp) override |
Implementation of IInterface::queryInterface. More... | |
std::vector< std::string > | getInterfaceNames () const override |
Implementation of IInterface::getInterfaceNames. More... | |
~extends () override=default | |
Virtual destructor. More... | |
void * | i_cast (const InterfaceID &tid) const override |
Implementation of IInterface::i_cast. More... | |
StatusCode | queryInterface (const InterfaceID &ti, void **pp) override |
Implementation of IInterface::queryInterface. More... | |
std::vector< std::string > | getInterfaceNames () const override |
Implementation of IInterface::getInterfaceNames. More... | |
~extends () override=default | |
Virtual destructor. More... | |
![]() | |
~extend_interfaces () override=default | |
Virtual destructor. More... | |
~extend_interfaces () override=default | |
Virtual destructor. More... | |
Protected Member Functions | |
virtual | ~ConversionSvc () |
Standard Destructor. More... | |
virtual IConverter * | createConverter (long typ, const CLID &clid, const ICnvFactory *fac) |
Create new Converter using factory. More... | |
virtual StatusCode | configureConverter (long typ, const CLID &clid, IConverter *cnv) |
Configure the new converter before initialize is called. More... | |
virtual StatusCode | initializeConverter (long typ, const CLID &clid, IConverter *cnv) |
Initialize the new converter. More... | |
virtual StatusCode | activateConverter (long typ, const CLID &clid, IConverter *cnv) |
Activate the new converter after initialization. More... | |
virtual void | loadConverter (DataObject *pObject) |
Load converter or dictionary needed by the converter. More... | |
virtual SmartIF< IAddressCreator > & | addressCreator () |
Retrieve address creation interface. More... | |
StatusCode | makeCall (int typ, bool ignore_add, bool ignore_obj, bool update, IOpaqueAddress *&pAddress, DataObject *&pObject) |
virtual | ~ConversionSvc () |
Standard Destructor. More... | |
virtual IConverter * | createConverter (long typ, const CLID &clid, const ICnvFactory *fac) |
Create new Converter using factory. More... | |
virtual StatusCode | configureConverter (long typ, const CLID &clid, IConverter *cnv) |
Configure the new converter before initialize is called. More... | |
virtual StatusCode | initializeConverter (long typ, const CLID &clid, IConverter *cnv) |
Initialize the new converter. More... | |
virtual StatusCode | activateConverter (long typ, const CLID &clid, IConverter *cnv) |
Activate the new converter after initialization. More... | |
virtual void | loadConverter (DataObject *pObject) |
Load converter or dictionary needed by the converter. More... | |
virtual SmartIF< IAddressCreator > & | addressCreator () |
Retrieve address creation interface. More... | |
StatusCode | makeCall (int typ, bool ignore_add, bool ignore_obj, bool update, IOpaqueAddress *&pAddress, DataObject *&pObject) |
Protected Attributes | |
SmartIF< IDataProviderSvc > | m_dataSvc |
Pointer to data provider service. More... | |
SmartIF< IAddressCreator > | m_addressCreator |
Pointer to the address creation service interface. More... | |
SmartIF< IConversionSvc > | m_cnvSvc |
Pointer to the IConversionSvc interface of this. More... | |
long | m_type |
Conversion service type. More... | |
std::vector< WorkerEntry > | m_workers |
List of conversion workers. More... | |
Private Member Functions | |
ConversionSvc (const ConversionSvc &) | |
Fake copy constructor (never implemented). More... | |
ConversionSvc & | operator= (const ConversionSvc &) |
Fake assignment operator (never implemented). More... | |
ConversionSvc (const ConversionSvc &) | |
Fake copy constructor (never implemented). More... | |
ConversionSvc & | operator= (const ConversionSvc &) |
Fake assignment operator (never implemented). More... | |
Additional Inherited Members | |
![]() | |
using | base_class = extends |
Typedef to this class. More... | |
using | extend_interfaces_base = extend_interfaces< Interfaces...> |
Typedef to the base of this class. More... | |
using | base_class = extends |
Typedef to this class. More... | |
using | extend_interfaces_base = extend_interfaces< Interfaces...> |
Typedef to the base of this class. More... | |
![]() | |
using | ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type |
take union of the ext_iids of all Interfaces... More... | |
using | ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type |
take union of the ext_iids of all Interfaces... More... | |
Base class for all conversion services.
It manages a set of Converters that are specialized for conversions of specific objects.
This supports self learning converters: User hooks include the following (overridable) entries:
configureConverter and activateConverter are user hooks, where the convetrer can be manipulated by the hosting service and knowledge can be supplied, which a "generic" converter cannot aquire itself.
These hooks allow any sub-classed conversion service to override the calls and create converters, which aquire the knowledge about their persistency type and the object type they convert during the initialization.
Only AFTER these three steps the converter must satisfy the storage type of the hosting service and the class type of the required object type.
Definition at line 46 of file ConversionSvc.h.
ConversionSvc::ConversionSvc | ( | const std::string & | name, |
ISvcLocator * | svc, | ||
long | type | ||
) |
Standard Constructor.
Definition at line 383 of file ConversionSvc.cpp.
|
protectedvirtual |
Standard Destructor.
Definition at line 393 of file ConversionSvc.cpp.
|
private |
Fake copy constructor (never implemented).
ConversionSvc::ConversionSvc | ( | const std::string & | name, |
ISvcLocator * | svc, | ||
long | type | ||
) |
Standard Constructor.
|
protectedvirtual |
Standard Destructor.
|
private |
Fake copy constructor (never implemented).
|
protectedvirtual |
Activate the new converter after initialization.
Activate the freshly created converter.
Definition at line 321 of file ConversionSvc.cpp.
|
protectedvirtual |
Activate the new converter after initialization.
|
virtual |
Add converter object to conversion service.
Definition at line 212 of file ConversionSvc.cpp.
|
virtual |
Add converter object to conversion service.
|
virtual |
Add converter object to conversion service.
Definition at line 239 of file ConversionSvc.cpp.
|
virtual |
Add converter object to conversion service.
|
virtual |
Retrieve address creator facility.
Access the transient store.
Definition at line 197 of file ConversionSvc.cpp.
|
virtual |
Retrieve address creator facility.
|
inlineprotectedvirtual |
Retrieve address creation interface.
Definition at line 210 of file ConversionSvc.h.
|
inlineprotectedvirtual |
Retrieve address creation interface.
Definition at line 210 of file ConversionSvc.h.
|
virtual |
Commit pending output.
Reimplemented in Gaudi::RootCnvSvc, and Gaudi::RootCnvSvc.
Definition at line 350 of file ConversionSvc.cpp.
|
virtual |
Commit pending output.
Reimplemented in Gaudi::RootCnvSvc, and Gaudi::RootCnvSvc.
|
protectedvirtual |
Configure the new converter before initialize is called.
|
protectedvirtual |
Configure the new converter before initialize is called.
Configure the freshly created converter.
Definition at line 302 of file ConversionSvc.cpp.
|
virtual |
Connect the output file to the service with open mode.
Reimplemented in Gaudi::RootCnvSvc, and Gaudi::RootCnvSvc.
Definition at line 339 of file ConversionSvc.cpp.
|
virtual |
Connect the output file to the service with open mode.
Reimplemented in Gaudi::RootCnvSvc, and Gaudi::RootCnvSvc.
|
virtual |
Connect the output file to the service.
Reimplemented in Gaudi::RootCnvSvc, and Gaudi::RootCnvSvc.
Definition at line 345 of file ConversionSvc.cpp.
|
virtual |
Connect the output file to the service.
Reimplemented in Gaudi::RootCnvSvc, and Gaudi::RootCnvSvc.
|
virtual |
Implementation of IConverter: Get conversion service the converter is connected to.
Get conversion service the converter is connected to.
Definition at line 207 of file ConversionSvc.cpp.
|
virtual |
Implementation of IConverter: Get conversion service the converter is connected to.
|
virtual |
Convert an address to string form.
|
virtual |
Convert an address to string form.
Definition at line 365 of file ConversionSvc.cpp.
|
virtual |
Retrieve converter from list.
Definition at line 144 of file ConversionSvc.cpp.
|
virtual |
Retrieve converter from list.
|
virtual |
Create a Generic address using explicit arguments to identify a single object.
Reimplemented in Gaudi::RootCnvSvc, and Gaudi::RootCnvSvc.
Definition at line 355 of file ConversionSvc.cpp.
|
virtual |
Create a Generic address using explicit arguments to identify a single object.
Reimplemented in Gaudi::RootCnvSvc, and Gaudi::RootCnvSvc.
|
virtual |
Convert an address in string form to object form.
Reimplemented in Gaudi::RootCnvSvc, and Gaudi::RootCnvSvc.
|
virtual |
Convert an address in string form to object form.
Reimplemented in Gaudi::RootCnvSvc, and Gaudi::RootCnvSvc.
Definition at line 373 of file ConversionSvc.cpp.
|
protectedvirtual |
Create new Converter using factory.
Reimplemented in Gaudi::RootCnvSvc, and Gaudi::RootCnvSvc.
|
protectedvirtual |
Create new Converter using factory.
Reimplemented in Gaudi::RootCnvSvc, and Gaudi::RootCnvSvc.
Definition at line 290 of file ConversionSvc.cpp.
|
virtual |
Implementation of IConverter: Create the transient representation of an object.
Create the transient representation of an object.
Definition at line 104 of file ConversionSvc.cpp.
|
virtual |
Implementation of IConverter: Create the transient representation of an object.
|
virtual |
Implementation of IConverter: Convert the transient object to the requested representation.
Convert the transient object to the requested representation.
Reimplemented in RootHistCnv::PersSvc.
Definition at line 124 of file ConversionSvc.cpp.
|
virtual |
Implementation of IConverter: Convert the transient object to the requested representation.
Reimplemented in RootHistCnv::PersSvc.
|
virtual |
Implementation of IConverter: Get Data provider service.
|
virtual |
Implementation of IConverter: Get Data provider service.
Access the transient store.
Definition at line 177 of file ConversionSvc.cpp.
|
virtual |
Implementation of IConverter: Resolve the references of the created transient object.
|
virtual |
Implementation of IConverter: Resolve the references of the created transient object.
Resolve the references of the created transient object.
Definition at line 109 of file ConversionSvc.cpp.
|
virtual |
Implementation of IConverter: Resolve the references of the converted object.
Resolve the references of the converted object.
Definition at line 129 of file ConversionSvc.cpp.
|
virtual |
Implementation of IConverter: Resolve the references of the converted object.
|
virtual |
stop the service.
Reimplemented in Gaudi::RootCnvSvc, Gaudi::RootCnvSvc, and RootHistCnv::PersSvc.
|
virtual |
stop the service.
Reimplemented in Gaudi::RootCnvSvc, Gaudi::RootCnvSvc, and RootHistCnv::PersSvc.
Definition at line 271 of file ConversionSvc.cpp.
|
virtual |
Initialize the service.
Reimplemented in Gaudi::RootCnvSvc, Gaudi::RootCnvSvc, and RootHistCnv::PersSvc.
Definition at line 265 of file ConversionSvc.cpp.
|
virtual |
Initialize the service.
Reimplemented in Gaudi::RootCnvSvc, Gaudi::RootCnvSvc, and RootHistCnv::PersSvc.
|
protectedvirtual |
Initialize the new converter.
Initialize new converter.
Definition at line 313 of file ConversionSvc.cpp.
|
protectedvirtual |
Initialize the new converter.
|
protectedvirtual |
Load converter or dictionary needed by the converter.
Reimplemented in Gaudi::RootCnvSvc, and Gaudi::RootCnvSvc.
Definition at line 95 of file ConversionSvc.cpp.
|
protectedvirtual |
Load converter or dictionary needed by the converter.
Reimplemented in Gaudi::RootCnvSvc, and Gaudi::RootCnvSvc.
|
protected |
Definition at line 23 of file ConversionSvc.cpp.
|
protected |
const CLID & ConversionSvc::objType | ( | ) | const |
Implementation of IConverter: dummy call.
Retrieve the class type of objects the converter produces.
Definition at line 329 of file ConversionSvc.cpp.
const CLID& ConversionSvc::objType | ( | ) | const |
Implementation of IConverter: dummy call.
|
private |
Fake assignment operator (never implemented).
|
private |
Fake assignment operator (never implemented).
|
virtual |
Remove converter object from conversion service (if present).
Definition at line 251 of file ConversionSvc.cpp.
|
virtual |
Remove converter object from conversion service (if present).
|
virtual |
Retrieve the class type of the data store the converter uses.
|
virtual |
Retrieve the class type of the data store the converter uses.
Definition at line 334 of file ConversionSvc.cpp.
|
virtual |
Set address creator facility.
Definition at line 182 of file ConversionSvc.cpp.
|
virtual |
Set address creator facility.
|
virtual |
Implementation of IConverter: Set conversion service the converter is connected to.
Set conversion service the converter is connected to.
Definition at line 202 of file ConversionSvc.cpp.
|
virtual |
Implementation of IConverter: Set conversion service the converter is connected to.
|
virtual |
Implementation of IConverter: Set Data provider service.
pService | Pointer to data provider service |
|
virtual |
Implementation of IConverter: Set Data provider service.
Define transient data store.
pService | Pointer to data provider service |
Definition at line 163 of file ConversionSvc.cpp.
|
virtual |
Implementation of IConverter: Update the transient object from the other representation.
Update the transient object from the other representation.
Definition at line 114 of file ConversionSvc.cpp.
|
virtual |
Implementation of IConverter: Update the transient object from the other representation.
|
virtual |
Implementation of IConverter: Update the references of an updated transient object.
Update the references of an updated transient object.
Definition at line 119 of file ConversionSvc.cpp.
|
virtual |
Implementation of IConverter: Update the references of an updated transient object.
|
virtual |
Implementation of IConverter: Update the converted representation of a transient object.
Update the converted representation of a transient object.
Definition at line 134 of file ConversionSvc.cpp.
|
virtual |
Implementation of IConverter: Update the converted representation of a transient object.
|
virtual |
Implementation of IConverter: Update the references of an already converted object.
|
virtual |
Implementation of IConverter: Update the references of an already converted object.
Update the references of an already converted object.
Definition at line 139 of file ConversionSvc.cpp.
|
virtual |
Update state of the service.
Reimplemented in Gaudi::RootCnvSvc, and Gaudi::RootCnvSvc.
|
virtual |
Update state of the service.
Reimplemented in Gaudi::RootCnvSvc, and Gaudi::RootCnvSvc.
Definition at line 99 of file ConversionSvc.cpp.
|
mutableprotected |
Pointer to the address creation service interface.
Definition at line 225 of file ConversionSvc.h.
|
mutableprotected |
Pointer to the IConversionSvc interface of this.
Definition at line 227 of file ConversionSvc.h.
|
mutableprotected |
Pointer to data provider service.
Definition at line 223 of file ConversionSvc.h.
|
protected |
Conversion service type.
Definition at line 229 of file ConversionSvc.h.
|
protected |
List of conversion workers.
Definition at line 231 of file ConversionSvc.h.