ATLAS Offline Software
Loading...
Searching...
No Matches
T_AthenaPoolCnvBase.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef ATHENAPOOLCNVSVC_T_ATHENAPOOLCNVBASE_H
6#define ATHENAPOOLCNVSVC_T_ATHENAPOOLCNVBASE_H
7
12
14
15#include <string>
16
17class DataObject;
18class StatusCode;
19
23template <class T>
25public:
27 T_AthenaPoolCnvBase(ISvcLocator* svcloc,
28 const char* name = nullptr);
29
30protected:
31
33 virtual StatusCode initialize();
34
37 virtual StatusCode DataObjectToPers(DataObject* pObj, IOpaqueAddress*& pAddr);
38
41 virtual StatusCode DataObjectToPool(IOpaqueAddress* pAddr, DataObject* pObj);
42
47 virtual StatusCode PoolToDataObject(DataObject*& pObj, const Token* token,
48 const std::string& key);
49
51 virtual Placement setPlacement(const std::string& key, const std::string& output);
52
53public:
55 static const CLID& classID();
56};
57
58
60
61#endif
This file contains the class definition for the AthenaPoolConverter class.
uint32_t CLID
The Class ID type.
AthenaPoolConverter(const CLID &id, ISvcLocator *pSvcLocator, const char *name=nullptr)
Standard Service Constructor.
This class holds all the necessary information to guide the writing of an object in a physical place.
Definition Placement.h:19
virtual Placement setPlacement(const std::string &key, const std::string &output)
Set POOL placement.
virtual StatusCode initialize()
Gaudi Service Interface method implementations:
virtual StatusCode DataObjectToPool(IOpaqueAddress *pAddr, DataObject *pObj)
Write an object into POOL.
virtual StatusCode PoolToDataObject(DataObject *&pObj, const Token *token, const std::string &key)
Read an object from POOL.
virtual StatusCode DataObjectToPers(DataObject *pObj, IOpaqueAddress *&pAddr)
Convert an object into Persistent.
T_AthenaPoolCnvBase(ISvcLocator *svcloc, const char *name=nullptr)
Constructor.
static const CLID & classID()
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition Token.h:21