ATLAS Offline Software
Loading...
Searching...
No Matches
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
15template <class TYPE> class CnvFactory;
16
17template< class DATATYPE >
18class 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
uint32_t CLID
The Class ID type.
Abstract factory to create the converter.
An AlgTool class to provide conversion ByteStream <-> TestBeam Instrumentation Data created Feb 2004 ...
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj) override
TBByteStreamCnvTool * m_tool
Definition TBDataCnv.h:33
virtual long repSvcType() const override
Storage type and class ID.
Definition TBDataCnv.h:28
virtual StatusCode initialize() override
virtual StatusCode createRep(DataObject *pObj, IOpaqueAddress *&pAddr) override
TBDataCnv(ISvcLocator *svcloc)
static const CLID & classID()
static long storageType()