ATLAS Offline Software
RecoTimingObjCnv.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 RECATHENAPOOL_RECOTIMINGOBJCNV_H
6 #define RECATHENAPOOL_RECOTIMINGOBJCNV_H
7 
8 // AthenaPoolCnvSvc includes
10 
11 #include "RecEvent/RecoTimingObj.h"
13 
14 class MsgStream;
15 
17 
18 class RecoTimingObjCnv: public T_AthenaPoolCustomCnv< RecoTimingObj, RecoTimingObj_PERS >
19 {
20 
21  // make the factory for this converter our friend
22  friend class CnvFactory<RecoTimingObjCnv>;
23 
25  // Protected methods:
27  protected:
28 
31 public:
32  RecoTimingObjCnv(ISvcLocator* svcloc);
33 
34  // destructor
35  virtual ~RecoTimingObjCnv() { delete m_msg; };
36 
37 protected:
38 
41  virtual RecoTimingObj_PERS* createPersistent( RecoTimingObj* transCont );
42 
45  virtual RecoTimingObj* createTransient();
46 
47  private:
48 
49  MsgStream *m_msg;
50 
51 };
52 
56 
57 inline RecoTimingObjCnv::RecoTimingObjCnv( ISvcLocator* svcLocator ) :
59  m_msg(0)
60 {}
61 
62 #endif
RecoTimingObjCnv::createTransient
virtual RecoTimingObj * createTransient()
Build the transient representation from a persistent one.
Definition: RecoTimingObjCnv.cxx:29
RecoTimingObj
Definition: RecoTimingObj.h:13
RecoTimingObjCnv::m_msg
MsgStream * m_msg
Definition: RecoTimingObjCnv.h:49
RecoTimingObj_p1
Definition: RecoTimingObj_p1.h:14
RecoTimingObj_PERS
RecoTimingObj_p1 RecoTimingObj_PERS
Definition: RecoTimingObjCnv.h:14
T_AthenaPoolCustomCnv
Compatibility for old converter classes that don't get passed the key.
Definition: T_AthenaPoolCustomCnv.h:132
RecoTimingObjCnv::~RecoTimingObjCnv
virtual ~RecoTimingObjCnv()
Definition: RecoTimingObjCnv.h:35
T_AthenaPoolCustomCnv.h
his file contains the class definition for the templated T_AthenaPoolCustomCnv class.
RecoTimingObjCnv
Definition: RecoTimingObjCnv.h:19
CnvFactory
Abstract factory to create the converter.
Definition: ToyConverter.h:16
RecoTimingObjCnv::RecoTimingObjCnv
RecoTimingObjCnv(ISvcLocator *svcloc)
Create the converter from the service locator.
Definition: RecoTimingObjCnv.h:57
RecoTimingObjCnv::createPersistent
virtual RecoTimingObj_PERS * createPersistent(RecoTimingObj *transCont)
Build the persistent representation from the transient one.
Definition: RecoTimingObjCnv.cxx:16
RecoTimingObj.h
RecoTimingObj_p1.h