BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/RawDataCnv/RawDataCnv/RawDataCnv.h
Go to the documentation of this file.
1//====================================================================
2// RawDataCnv.h
3//====================================================================
4//
5// Description:
6// RawDataCnv is the concrete converter for
7// the event header on the TDS /Event
8//
9//--------------------------------------------------------------------
10
11#ifndef EF_TDR_EVENT_CNV_H
12#define EF_TDR_EVENT_CNV_H
13
14// Include files.
15#include "RawDataCnvBase/RawDataBaseCnv.h"
16#include "RawDataCnv/ClassID_temp.h"
17
18namespace Event{ class EventH; }
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 RawDataCnv : public RawDataBaseCnv
30{
31
32 // Declaration of a Converter Factory to create instances of this class.
33 friend class CnvFactory<RawDataCnv>;
34protected:
35 // Standard Constructor.
36 RawDataCnv(ISvcLocator* svc);
37public:
38
39 StatusCode initialize();
40
41 // Return the class type of this converter.
42 static const CLID& classID();
43
44 virtual long repSvcType() const {
46 }
47
48 static const unsigned char storageType() {
50 }
51
52 // Create a converted object in the Transient Data Store.
53 StatusCode createObj(IOpaqueAddress* pAddr, DataObject*& pObj);
54
55 /// override the RawDataBaseCnv version
56 virtual StatusCode updateObj(IOpaqueAddress*, DataObject*);
57
58 virtual StatusCode createRep(DataObject* pObj, IOpaqueAddress*& pAddr);
59
60private:
61 IRawDataInputSvc* m_inputSvc;
62};
63
64#endif // EF_TDR_EVENT_CNV_H
virtual StatusCode updateObj(IOpaqueAddress *, DataObject *)
override the RawDataBaseCnv version
static const CLID & classID()
StatusCode initialize()
StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj)
virtual StatusCode createRep(DataObject *pObj, IOpaqueAddress *&pAddr)
Convert the transient object to the requested representation.
RawDataCnv(ISvcLocator *svc)