ATLAS Offline Software
LArAthenaPool/src/T_LArCondAthenaPoolCnv.icc
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 template <class T>
6 T_LArCondAthenaPoolCnv<T>::T_LArCondAthenaPoolCnv(ISvcLocator* svcloc)
7  : LArCondAthenaPoolCnvBase( svcloc)
8 {
9 
10 }
11 
12 template <class T>
13 T_LArCondAthenaPoolCnv<T>::~T_LArCondAthenaPoolCnv()
14 {
15 
16 }
17 
18 template <class T>
19  StatusCode T_LArCondAthenaPoolCnv<T>::transToPers(T* obj, PERSIST*& persObj)
20 {
21  persObj = obj->getPersistent();
22  return StatusCode::SUCCESS;
23 }
24 
25 
26 template <class T>
27 StatusCode T_LArCondAthenaPoolCnv<T>::persToTrans(T*& transObj, PERSIST* obj)
28 {
29  transObj = new T() ;
30  transObj->setPersistent(obj);
31  return StatusCode::SUCCESS;
32 }