#include <McCnvSvc.h>
McCnvSvc overrides | |
virtual StatusCode | initialize () |
Initialize the service. | |
virtual StatusCode | finalize () |
virtual StatusCode | queryInterface (const InterfaceID &riid, void **ppvInterface) |
Override inherited queryInterface due to enhanced interface. | |
virtual StatusCode | updateServiceState (IOpaqueAddress *pAddress) |
Update state of the service. | |
static unsigned char | storageType () |
storage type | |
: Object implementation | |
McCnvSvc (const std::string &name, ISvcLocator *svc) | |
Standard Constructor. | |
virtual | ~McCnvSvc () |
Standard Destructor. | |
McEvtSelector * | m_evtsel |
access to the EventSelector | |
Friends | |
class | SvcFactory< McCnvSvc > |
Allow the factory class access to the constructor. |
Definition at line 23 of file McCnvSvc.h.
McCnvSvc::McCnvSvc | ( | const std::string & | name, | |
ISvcLocator * | svc | |||
) | [protected] |
Standard Constructor.
Definition at line 34 of file McCnvSvc.cxx.
00035 : ConversionSvc( name, svc, storageType()) 00036 { 00037 }
McCnvSvc::~McCnvSvc | ( | ) | [protected, virtual] |
StatusCode McCnvSvc::finalize | ( | ) | [virtual] |
Definition at line 50 of file McCnvSvc.cxx.
References Bes_Common::DEBUG, and msgSvc().
00050 { 00051 MsgStream log(msgSvc(), name()); 00052 log << MSG::DEBUG << "RootCnvSvc::finalize" << endreq; 00053 00054 ConversionSvc::finalize(); 00055 00056 return StatusCode::SUCCESS; 00057 }
StatusCode McCnvSvc::initialize | ( | ) | [virtual] |
Initialize the service.
Definition at line 44 of file McCnvSvc.cxx.
References msgSvc().
00044 { 00045 MsgStream log(msgSvc(), name()); 00046 StatusCode status = ConversionSvc::initialize(); 00047 return status; 00048 }
StatusCode McCnvSvc::queryInterface | ( | const InterfaceID & | riid, | |
void ** | ppvInterface | |||
) | [virtual] |
Override inherited queryInterface due to enhanced interface.
Definition at line 59 of file McCnvSvc.cxx.
References IID_IMcCnvSvc().
00059 { 00060 00061 if ( IID_IMcCnvSvc == riid ) { 00062 *ppvInterface = (McCnvSvc*)this; 00063 } 00064 else { 00065 // Interface is not directly availible: try out a base class 00066 return ConversionSvc::queryInterface(riid, ppvInterface); 00067 } 00068 addRef(); 00069 return StatusCode::SUCCESS; 00070 }
unsigned char McCnvSvc::storageType | ( | ) | [static] |
storage type
Definition at line 90 of file McCnvSvc.cxx.
References type.
Referenced by McEventCnv::repSvcType(), and McEventCnv::storageType().
00090 { 00091 static unsigned char type=0x10; 00092 return type; 00093 }
StatusCode McCnvSvc::updateServiceState | ( | IOpaqueAddress * | pAddress | ) | [virtual] |
Update state of the service.
Definition at line 73 of file McCnvSvc.cxx.
References first.
00073 { 00074 MsgStream log(messageService(), name()); 00075 static bool first = true; 00076 // static int fid = 0; 00077 // static int recid = 0; 00078 if ( 0 != pAddress ) { 00079 GenericAddress* pAddr = dynamic_cast<GenericAddress*>(pAddress); 00080 if ( 0 != pAddr ) { 00081 if ( first ) { 00082 first = false; 00083 } 00084 return StatusCode::SUCCESS; 00085 } 00086 } 00087 return StatusCode::FAILURE; 00088 }
friend class SvcFactory< McCnvSvc > [friend] |
McEvtSelector* McCnvSvc::m_evtsel [private] |