5#ifndef ATHENAPOOLCNVSVC_T_ATHENAPOOLCUSTOMCNV_H
6#define ATHENAPOOLCNVSVC_T_ATHENAPOOLCUSTOMCNV_H
13#include "GaudiKernel/ThreadLocalContext.h"
14#include "GaudiKernel/EventContext.h"
33template <
class TRANS,
class PERS>
47 const char* name =
nullptr);
94 virtual StatusCode
transToPers(TRANS*,
PERS*&)
override {
return(StatusCode::FAILURE); }
96 virtual StatusCode
persToTrans(TRANS*&,
PERS*)
override {
return(StatusCode::FAILURE); }
113 const std::string& key)
override;
116 virtual StatusCode
cleanUp(
const std::string& output)
override;
129template <
class TRANS,
class PERS>
RpcSectorLogicContainer_p1 PERS
his file contains the class definition for the templated T_AthenaPoolCustCnv class.
T_AthenaPoolCustCnv(ISvcLocator *pSvcLocator, const char *name=nullptr)
Constructor.
virtual StatusCode PoolToDataObject(DataObject *&pObj, const Token *token, const std::string &key) override
Read an object from POOL.
virtual StatusCode transToPers(TRANS *, PERS *&) override
Obsolete methods replaced by createPersistent() and createTransient() obsolete.
virtual PERS * createPersistentWithKey(TRANS *obj, const std::string &key)=0
method to be implemented by the developer.
virtual TRANS * createTransientWithKey(const std::string &key)=0
method to be implemented by the developer.
virtual StatusCode cleanUp(const std::string &output) override
Callback from the CleanupSvc to delete persistent object in the local list.
void poolReadObject(TopLevelTPCnvBase &tlp_converter)
Read object of type P (plus all extending objects) using the indicated top-level TP converter.
virtual StatusCode persToTrans(TRANS *&, PERS *) override
obsolete
T_AthenaPoolCustCnv< AUXSTORE, AUXSTORE > BaseType
T_AthenaPoolCustomCnvWithKey(ISvcLocator *pSvcLocator, const char *name=nullptr)
Constructor.
virtual StatusCode DataObjectToPers(DataObject *pObj, IOpaqueAddress *&pAddr) override
Convert an object into Persistent.
virtual StatusCode DataObjectToPool(IOpaqueAddress *pAddr, DataObject *pObj) override
Write an object into POOL.
std::map< std::string, std::vector< std::unique_ptr< AUXSTORE > > > m_persObjLists
P * poolReadObject()
Read object of type P.
void keepPoolObj(PERS *obj, const std::string &output)
Remember the POOL object to be written out (will be deleted after commit)
Compatibility for old converter classes that don't get passed the key.
virtual TRANS * createTransient()=0
virtual PERS * createPersistent(TRANS *obj)=0
virtual TRANS * createTransientWithKey(const std::string &) override
method to be implemented by the developer.
virtual PERS * createPersistentWithKey(TRANS *obj, const std::string &) override
method to be implemented by the developer.
This templated class extends T_AthenaPoolCustomCnv to provide additional/chaged functionality for Ath...
This class provides a token that identifies in a unique way objects on the persistent storage.
Base class for top-level TP converters.