#include <McEventCnv.h>
Inheritance diagram for McEventCnv:
Public Types | |
typedef Ty1 | source |
typedef Ty2 | destination |
Public Member Functions | |
StatusCode | createObj (IOpaqueAddress *pAddr, DataObject *&pObj) |
virtual long | repSvcType () const |
destination * | operator (const source &) const |
Static Public Member Functions | |
static unsigned char | storageType () |
Storage type and class ID. | |
static const CLID & | classID () |
Protected Member Functions | |
McEventCnv (ISvcLocator *svcloc) | |
virtual destination * | convert (const source &) const =0 |
Friends | |
class | CnvFactory< McEventCnv > |
Definition at line 17 of file McEventCnv.h.
typedef Ty2 Converter< Ty1, Ty2 >::destination [inherited] |
Definition at line 19 of file Converter.h.
Definition at line 18 of file Converter.h.
McEventCnv::McEventCnv | ( | ISvcLocator * | svcloc | ) | [protected] |
Definition at line 13 of file McEventCnv.cxx.
00013 : 00014 Converter(McCnvSvc::storageType(), classID(), svcloc) { 00015 }
static const CLID& McEventCnv::classID | ( | ) | [inline, static] |
Definition at line 30 of file McEventCnv.h.
References CLID_Event.
00030 { 00031 return CLID_Event; 00032 }
virtual destination* Converter< Ty1, Ty2 >::convert | ( | const source & | ) | const [protected, pure virtual, inherited] |
StatusCode McEventCnv::createObj | ( | IOpaqueAddress * | pAddr, | |
DataObject *& | pObj | |||
) |
Definition at line 18 of file McEventCnv.cxx.
References McAddress::eventNumber(), and McAddress::runNumber().
00018 { 00019 McAddress *pMcAddr; 00020 pMcAddr = dynamic_cast<McAddress*>(pAddr); 00021 00022 Event::EventHeader *eventHeader = new Event::EventHeader; 00023 eventHeader->setEventNumber(pMcAddr->eventNumber()); 00024 eventHeader->setRunNumber(pMcAddr->runNumber()); 00025 pObj = eventHeader; 00026 00027 return StatusCode::SUCCESS; 00028 }
destination* Converter< Ty1, Ty2 >::operator | ( | const source & | ) | const [inline, inherited] |
long McEventCnv::repSvcType | ( | ) | const [virtual] |
Definition at line 35 of file McEventCnv.cxx.
References McCnvSvc::storageType().
00035 { 00036 return McCnvSvc::storageType(); 00037 }
unsigned char McEventCnv::storageType | ( | ) | [static] |
Storage type and class ID.
Definition at line 31 of file McEventCnv.cxx.
References McCnvSvc::storageType().
00031 { 00032 return McCnvSvc::storageType(); 00033 }
friend class CnvFactory< McEventCnv > [friend] |
Definition at line 18 of file McEventCnv.h.