BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
RawDataTrigCnv.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "RawDataCnv/RawDataAddress.h"
4#include "TrigEvent/TrigEvent.h"
5
6#include "RawDataBaseCnv.h"
7
8extern const CLID& CLID_TrigEvent;
9
11public:
12 RawDataTrigCnv( ISvcLocator* svc ) : RawDataBaseCnv( svc, classID() ) {}
13
14 static const CLID& classID() { return CLID_TrigEvent; }
15
16 StatusCode createObj( IOpaqueAddress* pAddr, DataObject*& pObj ) {
17 TrigEvent* evt = new TrigEvent();
18 pObj = evt;
19 return StatusCode::SUCCESS;
20 }
21
22 StatusCode createRep( DataObject* pObj, IOpaqueAddress*& pAddr ) {
23 std::string nm = pObj->registry()->name();
24 RawDataAddress* addr = new RawDataAddress( classID(), nm, "" );
25 pAddr = addr;
26
27 return StatusCode::SUCCESS;
28 }
29};
const CLID & CLID_TrigEvent
const CLID & CLID_TrigEvent
RawDataBaseCnv(long storageType, const CLID &clid, ISvcLocator *svc)
RawDataTrigCnv(ISvcLocator *svc)
static const CLID & classID()
StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj)
StatusCode createRep(DataObject *pObj, IOpaqueAddress *&pAddr)