![]() |
ATLAS Offline Software
|
#include <xAODCnvSvc.h>
Public Types | |
typedef std::unordered_map< CLID, WorkerEntry > | Workers |
Public Member Functions | |
xAODCnvSvc (const std::string &name, ISvcLocator *pSvcLocator) | |
Constructor with parameters: More... | |
virtual | ~xAODCnvSvc () |
Destructor: More... | |
virtual StatusCode | initialize () |
Gaudi Service Implementation. More... | |
virtual StatusCode | finalize () |
virtual StatusCode | queryInterface (const InterfaceID &riid, void **ppvInterface) |
virtual StatusCode | updateServiceState (IOpaqueAddress *pAddress) |
IConversionSvc and IConverter interfaces More... | |
virtual StatusCode | createObj (IOpaqueAddress *pAddress, DataObject *&refpObject) |
Implementation of IConverter: Create the transient representation of an object from persistent state. 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 | connectOutput (const std::string &outputConnectionSpec, const std::string &openMode) |
Connect the output connection specification to the service with open mode. More... | |
virtual StatusCode | connectOutput (const std::string &outputConnectionSpec) |
Connect the output connection specification to the service with open mode. More... | |
virtual StatusCode | commitOutput (const std::string &outputConnectionSpec, bool doCommit) |
Commit pending output. More... | |
virtual StatusCode | createAddress (long svcType, const CLID &clid, const std::string *par, const unsigned long *ip, IOpaqueAddress *&refpAddress) |
IAddressCreator interfaces More... | |
virtual StatusCode | convertAddress (const IOpaqueAddress *pAddress, std::string &refAddress) |
Convert address to string form. More... | |
virtual StatusCode | createAddress (long svcType, const CLID &clid, const std::string &refAddress, IOpaqueAddress *&refpAddress) |
Create address from string form. More... | |
MsgStream & | msg () const |
MsgStream & | msg (const MSG::Level lvl) const |
bool | msgLvl (const MSG::Level lvl) const |
@c IConversionSvc implementation | |
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 | 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 | 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... | |
@c IConversionSvc implementation | |
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 | 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 | 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 | disconnectOutput (const std::string &output) |
Disconnect output files from the service. More... | |
@c IConversionSvc implementation | |
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 | 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 | 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 | disconnectOutput (const std::string &output) |
Disconnect output files from the service. More... | |
Static Public Member Functions | |
static const InterfaceID & | interfaceID () |
Protected Member Functions | |
virtual IConverter * | createConverter (long typ, const CLID &clid, const ICnvFactory *fac) |
Create new Converter using factory (override AthCnvSvc::createConverter) More... | |
Private Member Functions | |
xAODCnvSvc () | |
Default constructor: More... | |
Friends | |
class | SvcFactory< Athena::xAODCnvSvc > |
@c IAddressCreator interface implementation | |
virtual SmartIF< IAddressCreator > & | addressCreator () |
Retrieve address creation interface. 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... | |
StatusCode | makeCall (int typ, bool ignore_add, bool ignore_obj, bool update, IOpaqueAddress *&pAddress, DataObject *&pObject) |
typedef std::recursive_mutex | CallMutex |
Mutex to protect Converter creation. More... | |
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... | |
Workers | m_workers |
List of conversion workers. More... | |
CallMutex | m_conv_mut |
Definition at line 29 of file xAODCnvSvc.h.
|
protectedinherited |
Mutex to protect Converter creation.
Definition at line 323 of file AthCnvSvc.h.
|
inherited |
Definition at line 106 of file AthCnvSvc.h.
Athena::xAODCnvSvc::xAODCnvSvc | ( | const std::string & | name, |
ISvcLocator * | pSvcLocator | ||
) |
|
virtual |
|
private |
Default constructor:
|
protectedvirtualinherited |
Activate the new converter after initialization.
Definition at line 536 of file AthCnvSvc.cxx.
|
virtualinherited |
|
inlineprotectedvirtualinherited |
Retrieve address creation interface.
Definition at line 300 of file AthCnvSvc.h.
|
virtualinherited |
|
virtual |
|
protectedvirtualinherited |
Configure the new converter before initialize is called.
Definition at line 510 of file AthCnvSvc.cxx.
|
virtual |
Connect the output connection specification to the service with open mode.
outputConnectionSpec | [IN] the name of the output connection specification as string. |
Reimplemented from AthCnvSvc.
Definition at line 182 of file xAODCnvSvc.cxx.
|
virtual |
Connect the output connection specification to the service with open mode.
outputConnectionSpec | [IN] the name of the output connection specification as string. |
openMode | [IN] the open mode of the file as string. |
Reimplemented from AthCnvSvc.
Definition at line 162 of file xAODCnvSvc.cxx.
|
virtualinherited |
Implementation of IConverter: Get conversion service the converter is connected to.
Definition at line 232 of file AthCnvSvc.cxx.
|
virtual |
Convert address to string form.
pAddress | [IN] address to be converted. |
refAddress | [OUT] converted string form. |
Reimplemented from AthCnvSvc.
Definition at line 233 of file xAODCnvSvc.cxx.
|
virtual |
Create address from string form.
svcType | [IN] service type of the address. |
clid | [IN] class id for the address. |
refAddress | [IN] string form to be converted. |
refpAddress | [OUT] converted address. |
Reimplemented from AthCnvSvc.
Definition at line 252 of file xAODCnvSvc.cxx.
|
virtual |
IAddressCreator
interfaces
Create a Generic address using explicit arguments to identify a single object.
svcType | [IN] service type of the address. |
clid | [IN] class id for the address. |
par | [IN] string containing the database name. |
ip | [IN] object identifier. |
refpAddress | [OUT] converted address. |
Reimplemented from AthCnvSvc.
Definition at line 217 of file xAODCnvSvc.cxx.
|
protectedvirtual |
Create new Converter using factory (override AthCnvSvc::createConverter)
Reimplemented from AthCnvSvc.
Definition at line 285 of file xAODCnvSvc.cxx.
|
virtual |
Implementation of IConverter: Create the transient representation of an object from persistent state.
pAddress | [IN] pointer to IOpaqueAddress of the representation. |
refpObject | [OUT] pointer to DataObject to be created. |
Reimplemented from AthCnvSvc.
Definition at line 107 of file xAODCnvSvc.cxx.
|
virtual |
Implementation of IConverter: Convert the transient object to the requested representation.
pObject | [IN] pointer to DataObject. |
refpAddress | [OUT] pointer to IOpaqueAddress of the representation to be created. |
Reimplemented from AthCnvSvc.
Definition at line 129 of file xAODCnvSvc.cxx.
|
virtualinherited |
Implementation of IConverter: Get Data provider service.
Definition at line 212 of file AthCnvSvc.cxx.
|
virtualinherited |
Disconnect output files from the service.
Reimplemented in AthenaPoolCnvSvc.
Definition at line 437 of file AthCnvSvc.cxx.
|
virtualinherited |
Implementation of IConverter: Resolve the references of the created transient object.
Definition at line 281 of file AthCnvSvc.cxx.
|
virtual |
Implementation of IConverter: Resolve the references of the converted object.
pAddress | [IN] pointer to IOpaqueAddress of the representation to be resolved. |
pObject | [IN] pointer to DataObject to be created. |
Reimplemented from AthCnvSvc.
Definition at line 146 of file xAODCnvSvc.cxx.
|
virtual |
Reimplemented from AthCnvSvc.
Definition at line 63 of file xAODCnvSvc.cxx.
|
virtual |
Gaudi Service Implementation.
Reimplemented from AthCnvSvc.
Definition at line 55 of file xAODCnvSvc.cxx.
|
protectedvirtualinherited |
Initialize the new converter.
Definition at line 525 of file AthCnvSvc.cxx.
|
inlinestatic |
Definition at line 185 of file xAODCnvSvc.h.
|
protectedvirtualinherited |
Load converter or dictionary needed by the converter.
Definition at line 547 of file AthCnvSvc.cxx.
|
protectedinherited |
Definition at line 553 of file AthCnvSvc.cxx.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 27 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
Implementation of IConverter: dummy call.
Definition at line 179 of file AthCnvSvc.cxx.
|
virtual |
Remove converter object from conversion service (if present).
Definition at line 379 of file AthCnvSvc.cxx.
|
virtualinherited |
Retrieve the class type of the data store the converter uses.
Definition at line 172 of file AthCnvSvc.cxx.
|
virtualinherited |
|
virtualinherited |
Implementation of IConverter: Set conversion service the converter is connected to.
Definition at line 224 of file AthCnvSvc.cxx.
|
virtualinherited |
Implementation of IConverter: Set Data provider service.
pService | Pointer to data provider service |
Definition at line 189 of file AthCnvSvc.cxx.
|
virtualinherited |
Implementation of IConverter: Update the transient object from the other representation.
Definition at line 289 of file AthCnvSvc.cxx.
|
virtualinherited |
Implementation of IConverter: Update the references of an updated transient object.
Definition at line 297 of file AthCnvSvc.cxx.
|
virtualinherited |
Implementation of IConverter: Update the converted representation of a transient object.
Definition at line 321 of file AthCnvSvc.cxx.
|
virtualinherited |
Implementation of IConverter: Update the references of an already converted object.
Definition at line 329 of file AthCnvSvc.cxx.
|
virtual |
IConversionSvc
and IConverter
interfaces
update the service state (well, just check the IOpaqueAddress
is in fact a GenericAddress
)
Reimplemented from AthCnvSvc.
Definition at line 91 of file xAODCnvSvc.cxx.
|
friend |
Definition at line 185 of file xAODCnvSvc.h.
|
protectedinherited |
Pointer to the address creation service interface.
Definition at line 315 of file AthCnvSvc.h.
|
protectedinherited |
Pointer to the IConversionSvc interface of this.
Definition at line 317 of file AthCnvSvc.h.
|
protectedinherited |
Definition at line 324 of file AthCnvSvc.h.
|
protectedinherited |
Pointer to data provider service.
Definition at line 313 of file AthCnvSvc.h.
|
protectedinherited |
Conversion service type.
Definition at line 319 of file AthCnvSvc.h.
|
protectedinherited |
List of conversion workers.
Definition at line 321 of file AthCnvSvc.h.