|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef ATHENAPOOLCNVSVC_ATHENAPOOLCONVERTER_H
6 #define ATHENAPOOLCNVSVC_ATHENAPOOLCONVERTER_H
13 #include "GaudiKernel/Converter.h"
14 #include "GaudiKernel/ServiceHandle.h"
84 const char*
name =
nullptr);
101 const std::string&
key) = 0;
virtual Placement setPlacementWithType(const std::string &tname, const std::string &key, const std::string &output)
Set POOL placement hint for a given type.
const DataObject * m_dataObject
This class holds all the necessary information to guide the writing of an object in a physical place.
virtual StatusCode DataObjectToPool(IOpaqueAddress *pAddr, DataObject *pObj)=0
Write an object into POOL.
ServiceHandle< IAthenaPoolCnvSvc > m_athenaPoolCnvSvc
virtual ~AthenaPoolConverter()
Destructor.
virtual Placement setPlacement(const std::string &key, const std::string &output)=0
Set POOL placement hint; pure virtual method implemented by classes templated by type.
bool compareClassGuid(const Guid &guid) const
static long storageType()
This class provides the interface for the AthenaPoolCleanUp which is used to clean up AthenaPoolConve...
ServiceHandle< StoreGateSvc > m_detStore
virtual long repSvcType() const override
virtual StatusCode initialize() override
Gaudi Service Interface method implementations:
This class provides a token that identifies in a unique way objects on the persistent storage.
ClassMap::const_iterator ClassMapIt
This class provides the abstract converter to translate an object to/from its persistent POOL represe...
virtual StatusCode cleanUp(const std::string &output) override
Implement cleanUp for AthenaPoolConverter to do nothing.
const Token * m_i_poolToken
static const CLID & classID()
AthenaPoolConverter(const CLID &id, ISvcLocator *pSvcLocator, const char *name=nullptr)
Standard Service Constructor.
::StatusCode StatusCode
StatusCode definition for legacy code.
This file contains the class definition for the IAthenaPoolCleanUp class.
std::string m_containerPrefix
std::string m_containerNameHint
Class to provide easy MsgStream access and capabilities.
Abstract factory to create the converter.
const ServiceHandle< StoreGateSvc > & detStore() const
Handle to DetectorStore.
uint32_t CLID
The Class ID type.
virtual StatusCode fillRepRefs(IOpaqueAddress *pAddr, DataObject *pObj) override
Create a POOL persistent representation for a transient object.
virtual StatusCode PoolToDataObject(DataObject *&pObj, const Token *token, const std::string &key)=0
Read an object from POOL.
This file contains the class definition for the IPoolSvc interface class.
virtual StatusCode DataObjectToPers(DataObject *pObj, IOpaqueAddress *&pAddr)=0
Convert an object into Persistent.
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number).
std::map< std::string, RootType > ClassMap
virtual StatusCode createRep(DataObject *pObj, IOpaqueAddress *&pAddr) override
Create a POOL persistent representation for a transient object.
std::string m_branchNameHint
virtual const DataObject * getDataObject() const
virtual StatusCode finalize() override
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj) override
Create a transient object from a POOL persistent representation.
This class provides the interface between Athena and PoolSvc.