|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef ATHENAPOOLCNVSVC_T_ATHENAPOOLLEGACYCNV_H
6 #define ATHENAPOOLCNVSVC_T_ATHENAPOOLLEGACYCNV_H
22 template<
class TRANS,
class PERS,
class LEGACY>
59 m_oldAPCnv = std::make_unique<LegacyCnv>( this->serviceLocator() ,
this );
61 if( !
sc.isSuccess() ) {
66 return m_oldAPCnv->DataObjectToPool( pAddr, pObj );
T_AthenaPoolCustomCnv< TRANS, PERS > BaseCnv
virtual TRANS * createTransient() override final
T_AthenaPoolLegacyCnv * m_ownerCnv
virtual LEGACY * createPersistent(TRANS *transCont) override final
T_AthenaPoolLegacyCnv(ISvcLocator *svcloc)
virtual StatusCode DataObjectToPool(IOpaqueAddress *pAddr, DataObject *pObj) override
Write an object into POOL.
Compatibility for old converter classes that don't get passed the key.
LegacyCnv(ISvcLocator *svcloc, T_AthenaPoolLegacyCnv *owner)
::StatusCode StatusCode
StatusCode definition for legacy code.
his file contains the class definition for the templated T_AthenaPoolCustomCnv class.
virtual bool writingLegacy()=0
user-supplied method that makes this converter write PERS if False or LEGACY if True in the current A...
std::unique_ptr< LegacyCnv > m_oldAPCnv
virtual StatusCode DataObjectToPool(IOpaqueAddress *pAddr, DataObject *pObj) override final
DataObjectToPool() that dispatches to the right converter based on writingLegacy()
T_AthenaPoolCustomCnv< TRANS, LEGACY > BaseLegacyCnv
virtual PERS * createPersistent(TRANS *) override=0
virtual StatusCode initialize()
Gaudi Service Interface method implementations:
virtual TRANS * createTransient() override=0
standard user-supplied methods to create TRANS and PERS representations
virtual LEGACY * createLegacy(TRANS *)=0
additional user-supplied method that creates LEGACY representation
This templated class extends T_AthenaPoolCustomCnv with the ability to write odditional persistent re...