ATLAS Offline Software
Loading...
Searching...
No Matches
LArAthenaPool/src/T_LArCondAthenaPoolCnv.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef T_LARCONDATHENAPOOLCNV_H
6#define T_LARCONDATHENAPOOLCNV_H
7
9
10class StoreGateSvc;
11
12// Template AthenaPool converter for LAr Conditions data
13// T == Transient Conditions data class
14// T should have T::P defined as a type, and P is the persistent data
15// type to be stored in POOL
16
17
18template <class T>
20 : public T_AthenaPoolCustCnv<T,typename T::PERSIST>
21{
22
23
24protected:
25
27
28 friend class CnvFactory<T_LArCondAthenaPoolCnv<T> >;
29
31 T_LArCondAthenaPoolCnv(ISvcLocator* svcloc);
32
33public:
34
35 // persistent class defined in Transient class
36 typedef typename T::PERSIST PERSIST ;
37
39
41
42 virtual StatusCode transToPers(T* obj, PERSIST*& persObj) ;
43 virtual StatusCode persToTrans(T*& transObj, PERSIST* obj) ;
44
45
46private:
47
48} ;
49
51
52#endif
53
54
his file contains the class definition for the templated T_AthenaPoolCustCnv class.
Abstract factory to create the converter.
The Athena Transient Store API.
T_AthenaPoolCustCnv(ISvcLocator *pSvcLocator, const char *name=nullptr)
virtual StatusCode transToPers(T *obj, PERSIST *&persObj)
initialization
virtual StatusCode persToTrans(T *&transObj, PERSIST *obj)
virtual ~T_LArCondAthenaPoolCnv()
T_AthenaPoolCustCnv< T, typename T::PERSIST > LArCondAthenaPoolCnvBase
T_LArCondAthenaPoolCnv(ISvcLocator *svcloc)
Constructor.