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
27template <class T>
29public:
31 T_AthenaPoolCnvBase(ISvcLocator* svcloc,
32 const char* name = nullptr);
33
34protected:
35
37 virtual StatusCode initialize();
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 CLID classID();
56
57protected:
59};
60
61
63
64#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:20
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:22
::StatusCode StatusCode
StatusCode definition for legacy code.