ATLAS Offline Software
Loading...
Searching...
No Matches
T_AthenaPoolCnvBase.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef ATHENAPOOLCNVSVC_T_ATHENAPOOLCNVBASE_H
6#define ATHENAPOOLCNVSVC_T_ATHENAPOOLCNVBASE_H
7
12
15
16#include <string>
17
18class DataObject;
19class StatusCode;
20
24template <class T>
26public:
28 T_AthenaPoolCnvBase(ISvcLocator* svcloc,
29 const char* name = nullptr);
30
31protected:
32
34 virtual StatusCode initialize();
35
38 virtual StatusCode DataObjectToPool(IOpaqueAddress* pAddr, DataObject* pObj);
39
44 virtual StatusCode PoolToDataObject(DataObject*& pObj, const Token* token,
45 const std::string& key);
46
48 virtual Placement setPlacement(const std::string& key, const std::string& output);
49
50public:
52 static CLID classID();
53
54protected:
56};
57
58
60
61#endif
This file contains the class definition for the AthenaPoolConverter class.
uint32_t CLID
The Class ID type.
TTypeAdapter RootType
Definition RootType.h:211
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.
static CLID classID()
T_AthenaPoolCnvBase(ISvcLocator *svcloc, const char *name=nullptr)
Constructor.
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition Token.h:21