ATLAS Offline Software
TBDataCnv.h
Go to the documentation of this file.
1 //Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef TESTBEAM_BYTESTREAM_DATA_CNV
8 #define TESTBEAM_BYTESTREAM_DATA_CNV
9 
10 
12 #include "GaudiKernel/Converter.h"
13 
14 // Abstract factory to create the converter
15 template <class TYPE> class CnvFactory;
16 
17 template< class DATATYPE >
18 class TBDataCnv: public Converter {
19 
20  public:
21  TBDataCnv(ISvcLocator* svcloc);
22 
23  virtual StatusCode initialize() override;
24  virtual StatusCode createObj(IOpaqueAddress* pAddr, DataObject*& pObj) override;
25  virtual StatusCode createRep(DataObject* pObj, IOpaqueAddress*& pAddr) override;
26 
28  virtual long repSvcType() const override { return i_repSvcType(); }
29  static long storageType();
30  static const CLID& classID();
31 
32  private:
33  TBByteStreamCnvTool* m_tool; //Tool that does the actual conversion
34 
35 };
36 
37 #include "TBCnv/TBDataCnv.icc"
38 
39 #endif
TBDataCnv
Definition: TBDataCnv.h:18
TBDataCnv::repSvcType
virtual long repSvcType() const override
Storage type and class ID.
Definition: TBDataCnv.h:28
TBDataCnv::m_tool
TBByteStreamCnvTool * m_tool
Definition: TBDataCnv.h:33
TBByteStreamCnvTool.h
TBDataCnv::initialize
virtual StatusCode initialize() override
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TBDataCnv::TBDataCnv
TBDataCnv(ISvcLocator *svcloc)
CnvFactory
Abstract factory to create the converter.
Definition: ToyConverter.h:16
TBDataCnv::createObj
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj) override
TBDataCnv.icc
CLID
uint32_t CLID
The Class ID type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
TBByteStreamCnvTool
An AlgTool class to provide conversion ByteStream <-> TestBeam Instrumentation Data created Feb 2004 ...
Definition: TBByteStreamCnvTool.h:47
Converter
Definition: Converter.h:27
TBDataCnv::createRep
virtual StatusCode createRep(DataObject *pObj, IOpaqueAddress *&pAddr) override
TBDataCnv::classID
static const CLID & classID()
TBDataCnv::storageType
static long storageType()