BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/RawDataCnv/RawDataCnv/RawDataDigiCnv.h
Go to the documentation of this file.
1//====================================================================
2// RawDataDigiCnv.h
3//====================================================================
4//
5// Description:
6// RawDataDigiCnv is the concrete converter for
7// the event on the TDS /Event/Digi
8//
9//--------------------------------------------------------------------
10
11#ifndef RAWDATA_DIGI_CNV_H
12#define RAWDATA_DIGI_CNV_H
13
14// Include files.
15#include "RawDataCnvBase/RawDataBaseCnv.h"
16#include "RawDataCnv/ClassID_temp.h"
17
18namespace Event{ class EventHeader; }
19
20// Forward declarations.
21class IOpaqueAddress;
22class DataObject;
23class StatusCode;
25
26// Converter Factory to create instances of this class.
27template <class TYPE> class CnvFactory;
28
29class RawDataDigiCnv : public RawDataBaseCnv
30{
31
32 // Declaration of a Converter Factory to create instances of this class.
33 friend class CnvFactory<RawDataDigiCnv>;
34protected:
35 // Standard Constructor.
36 RawDataDigiCnv(ISvcLocator* svc);
37public:
38 StatusCode initialize();
39
40 // Return the class type of this converter.
41 static const CLID& classID();
42
43 virtual long repSvcType() const {
45 }
46
47 static const unsigned char storageType() {
49 }
50
51 // Create a converted object in the Transient Data Store.
52 StatusCode createObj(IOpaqueAddress* pAddr, DataObject*& pObj);
53
54 /// override the RawDataBaseCnv version
55 virtual StatusCode updateObj(IOpaqueAddress*, DataObject*);
56
57 virtual StatusCode createRep(DataObject* pObj, IOpaqueAddress*& pAddr);
58
59private:
60 IRawDataInputSvc* m_inputSvc;
61 /// Define the interface to raw data cnv
62 IRawDataCnvSvc* m_RawDataAccess;
63
64};
65
66#endif // RAWDATA_DIGI_CNV_H
virtual StatusCode updateObj(IOpaqueAddress *, DataObject *)
override the RawDataBaseCnv version
static const CLID & classID()
StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj)
virtual StatusCode createRep(DataObject *pObj, IOpaqueAddress *&pAddr)
Convert the transient object to the requested representation.
RawDataDigiCnv(ISvcLocator *svc)
StatusCode initialize()