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