5#ifndef ATHENAPOOLCNVSVC_T_ATHENAPOOLCUSTCNV_H
6#define ATHENAPOOLCNVSVC_T_ATHENAPOOLCUSTCNV_H
34template <
class TRANS,
class PERS>
41 const char* name =
nullptr);
65 const std::string& key);
72 StatusCode
objectToPool(
P* pObj, std::unique_ptr<Token>& token,
const std::string& key,
const std::string& output);
92 virtual void setToken(
const std::string& token);
uint32_t CLID
The Class ID type.
This file contains the class definition for the Guid class (migrated from POOL).
RpcSectorLogicContainer_p1 PERS
his file contains the class definition for the templated T_AthenaPoolCnvBase class.
This file contains the class definition for the Token class (migrated from POOL).
Abstract factory to create the converter.
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number).
This class holds all the necessary information to guide the writing of an object in a physical place.
T_AthenaPoolCnvBase(ISvcLocator *svcloc, const char *name=nullptr)
virtual StatusCode persToTrans(TRANS *&transObj, PERS *obj)=0
StatusCode objectToPool(P *pObj, std::unique_ptr< Token > &token, const std::string &key, const std::string &output)
Write an object into POOL returning its token.
StatusCode poolToObject(const Token *&token, P *&pObj)
Read an object from POOL.
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
virtual StatusCode DataObjectToPool(IOpaqueAddress *pAddr, DataObject *pObj)
Write an object into POOL.
static const CLID & classID()
virtual void setToken(const std::string &token)
Set the token (in std::string representation) and classID for the object that will be read next.
virtual StatusCode DataObjectToPers(DataObject *pObj, IOpaqueAddress *&pAddr)
Convert an object into Persistent.
Placement setPlacementForP(P &p, const std::string &key, const std::string &output)
Set POOL placement for type P.
virtual StatusCode initialize()
Gaudi Service Interface method implementations:
virtual StatusCode transToPers(TRANS *obj, PERS *&persObj)=0
T_AthenaPoolCustCnv(ISvcLocator *pSvcLocator, const char *name=nullptr)
Constructor.
virtual StatusCode PoolToDataObject(DataObject *&pObj, const Token *token, const std::string &key)
Read an object from POOL.
This class provides a token that identifies in a unique way objects on the persistent storage.