![]() |
The Gaudi Framework
master (ff829712)
|
#include <GaudiKernel/Converter.h>
Public Types | |
using | Factory = Gaudi::PluginService::Factory<IConverter*( ISvcLocator* )> |
![]() | |
using | base_class |
Typedef to this class. | |
using | extend_interfaces_base |
Typedef to the base of this class. | |
using | iids |
![]() | |
using | ext_iids |
take union of the ext_iids of all Interfaces... | |
Public Member Functions | |
StatusCode | initialize () override |
Initialize the converter. | |
StatusCode | finalize () override |
Initialize the converter. | |
StatusCode | setDataProvider (IDataProviderSvc *svc) override |
Set Data provider service. | |
SmartIF< IDataProviderSvc > & | dataProvider () const override |
Get Data provider service. | |
StatusCode | setConversionSvc (IConversionSvc *svc) override |
Set conversion service the converter is connected to. | |
SmartIF< IConversionSvc > & | conversionSvc () const override |
Get conversion service the converter is connected to. | |
StatusCode | setAddressCreator (IAddressCreator *creator) override |
Set address creator facility. | |
SmartIF< IAddressCreator > & | addressCreator () const override |
Retrieve address creator facility. | |
const CLID & | objType () const override |
Retrieve the class type of objects the converter produces. | |
virtual long | i_repSvcType () const |
Retrieve the class type of the data store the converter uses. | |
StatusCode | createObj (IOpaqueAddress *pAddress, DataObject *&refpObject) override |
Create the transient representation of an object. | |
StatusCode | fillObjRefs (IOpaqueAddress *pAddress, DataObject *pObject) override |
Resolve the references of the created transient object. | |
StatusCode | updateObj (IOpaqueAddress *pAddress, DataObject *refpObject) override |
Update the transient object from the other representation. | |
StatusCode | updateObjRefs (IOpaqueAddress *pAddress, DataObject *pObject) override |
Update the references of an updated transient object. | |
StatusCode | createRep (DataObject *pObject, IOpaqueAddress *&refpAddress) override |
Convert the transient object to the requested representation. | |
StatusCode | fillRepRefs (IOpaqueAddress *pAddress, DataObject *pObject) override |
Resolve the references of the converted object. | |
StatusCode | updateRep (IOpaqueAddress *pAddress, DataObject *pObject) override |
Update the converted representation of a transient object. | |
StatusCode | updateRepRefs (IOpaqueAddress *pAddress, DataObject *pObject) override |
Update the references of an already converted object. | |
Converter (long storage_type, const CLID &class_type, ISvcLocator *svc=0) | |
Standard Constructor. | |
SmartIF< IService > | service (const std::string &name, const bool createIf=true) const |
Return a pointer to the service identified by name (or "type/name") | |
![]() | |
void const * | i_cast (const InterfaceID &tid) const override |
Implementation of IInterface::i_cast. | |
StatusCode | queryInterface (const InterfaceID &ti, void **pp) override |
Implementation of IInterface::queryInterface. | |
std::vector< std::string > | getInterfaceNames () const override |
Implementation of IInterface::getInterfaceNames. | |
implements ()=default | |
Default constructor. | |
implements (const implements &) | |
Copy constructor (zero the reference count) | |
implements & | operator= (const implements &) |
Assignment operator (do not touch the reference count). | |
unsigned long | addRef () const override |
Reference Interface instance. | |
unsigned long | release () const override |
Release Interface instance. | |
unsigned long | refCount () const override |
Current reference count. | |
Protected Member Functions | |
SmartIF< ISvcLocator > & | serviceLocator () const |
Retrieve pointer to service locator. | |
SmartIF< IMessageSvc > & | msgSvc () const |
Retrieve pointer to message service. | |
SmartIF< IDataManagerSvc > & | dataManager () const |
Get Data Manager service. | |
![]() | |
unsigned long | decRef () const override |
Private Attributes | |
long | m_storageType |
Storage type. | |
const CLID | m_classType |
Class type the converter can handle. | |
SmartIF< IAddressCreator > | m_addressCreator |
Pointer to the address creation service interface. | |
SmartIF< IDataProviderSvc > | m_dataProvider |
Pointer to data provider service. | |
SmartIF< IDataManagerSvc > | m_dataManager |
Pointer to data manager service. | |
SmartIF< IConversionSvc > | m_conversionSvc |
Pointer to the connected conversion service. | |
SmartIF< ISvcLocator > | m_svcLocator |
Service Locator reference. | |
SmartIF< IMessageSvc > | m_messageSvc |
MessageSvc reference. | |
Additional Inherited Members | |
![]() | |
std::atomic_ulong | m_refCount |
Reference counter. | |
Converter base class.
See interface for detailed description, arguments and return values
Definition at line 33 of file Converter.h.
using Converter::Factory = Gaudi::PluginService::Factory<IConverter*( ISvcLocator* )> |
Definition at line 35 of file Converter.h.
Converter::Converter | ( | long | storage_type, |
const CLID & | class_type, | ||
ISvcLocator * | svc = 0 ) |
Standard Constructor.
Definition at line 113 of file Converter.cpp.
|
override |
Retrieve address creator facility.
Access the transient store.
Definition at line 98 of file Converter.cpp.
|
override |
Get conversion service the converter is connected to.
Get data conversion service the converter is connected to.
Definition at line 89 of file Converter.cpp.
|
override |
|
override |
Convert the transient object to the requested representation.
Definition at line 40 of file Converter.cpp.
|
protected |
Get Data Manager service.
Get data manager service.
Definition at line 80 of file Converter.cpp.
|
override |
Get Data provider service.
Get data provider service.
Definition at line 77 of file Converter.cpp.
|
override |
Resolve the references of the created transient object.
Definition at line 31 of file Converter.cpp.
|
override |
|
override |
Initialize the converter.
Finalize the converter.
Definition at line 59 of file Converter.cpp.
|
virtual |
Retrieve the class type of the data store the converter uses.
Definition at line 25 of file Converter.cpp.
|
override |
Initialize the converter.
Definition at line 52 of file Converter.cpp.
|
protected |
Retrieve pointer to message service.
— Retrieve pointer to message service
Definition at line 104 of file Converter.cpp.
|
override |
Retrieve the class type of objects the converter produces.
Definition at line 22 of file Converter.cpp.
SmartIF< IService > Converter::service | ( | const std::string & | name, |
const bool | createIf = true ) const |
Return a pointer to the service identified by name (or "type/name")
Definition at line 116 of file Converter.cpp.
|
protected |
Retrieve pointer to service locator.
— Retrieve pointer to service locator
Definition at line 101 of file Converter.cpp.
|
override |
|
override |
Set conversion service the converter is connected to.
Definition at line 83 of file Converter.cpp.
|
override |
|
override |
Update the transient object from the other representation.
Definition at line 34 of file Converter.cpp.
|
override |
|
override |
Update the converted representation of a transient object.
Definition at line 46 of file Converter.cpp.
|
override |
|
mutableprivate |
Pointer to the address creation service interface.
Definition at line 112 of file Converter.h.
|
private |
Class type the converter can handle.
Definition at line 110 of file Converter.h.
|
mutableprivate |
Pointer to the connected conversion service.
Definition at line 118 of file Converter.h.
|
mutableprivate |
Pointer to data manager service.
Definition at line 116 of file Converter.h.
|
mutableprivate |
Pointer to data provider service.
Definition at line 114 of file Converter.h.
|
mutableprivate |
MessageSvc reference.
Definition at line 122 of file Converter.h.
|
private |
Storage type.
Definition at line 108 of file Converter.h.
|
mutableprivate |
Service Locator reference.
Definition at line 120 of file Converter.h.