#include <McCnvSvc.h>
|
| McCnvSvc (const std::string &name, ISvcLocator *svc) |
| Standard Constructor.
|
|
virtual | ~McCnvSvc () |
| Standard Destructor.
|
|
|
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
|
|
Definition at line 23 of file McCnvSvc.h.
◆ McCnvSvc()
McCnvSvc::McCnvSvc |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
svc |
|
) |
| |
|
protected |
Standard Constructor.
Standard constructor.
Definition at line 34 of file McCnvSvc.cxx.
36{
37}
static unsigned char storageType()
storage type
◆ ~McCnvSvc()
◆ finalize()
StatusCode McCnvSvc::finalize |
( |
| ) |
|
|
virtual |
Definition at line 50 of file McCnvSvc.cxx.
50 {
51 MsgStream log(
msgSvc(), name());
52 log << MSG::DEBUG << "RootCnvSvc::finalize" << endreq;
53
54 ConversionSvc::finalize();
55
56 return StatusCode::SUCCESS;
57}
◆ initialize()
StatusCode McCnvSvc::initialize |
( |
| ) |
|
|
virtual |
Initialize the service.
Definition at line 44 of file McCnvSvc.cxx.
44 {
45 MsgStream log(
msgSvc(), name());
46 StatusCode status = ConversionSvc::initialize();
47 return status;
48}
◆ queryInterface()
StatusCode McCnvSvc::queryInterface |
( |
const InterfaceID & |
riid, |
|
|
void ** |
ppvInterface |
|
) |
| |
|
virtual |
Override inherited queryInterface due to enhanced interface.
Definition at line 59 of file McCnvSvc.cxx.
59 {
60
61 if ( IID_IMcCnvSvc == riid ) {
63 }
64 else {
65
66 return ConversionSvc::queryInterface(riid, ppvInterface);
67 }
68 addRef();
69 return StatusCode::SUCCESS;
70}
◆ storageType()
unsigned char McCnvSvc::storageType |
( |
| ) |
|
|
static |
◆ updateServiceState()
StatusCode McCnvSvc::updateServiceState |
( |
IOpaqueAddress * |
pAddress | ) |
|
|
virtual |
Update state of the service.
Definition at line 73 of file McCnvSvc.cxx.
73 {
74 MsgStream log(messageService(), name());
75 static bool first =
true;
76
77
78 if ( 0 != pAddress ) {
79 GenericAddress* pAddr = dynamic_cast<GenericAddress*>(pAddress);
80 if ( 0 != pAddr ) {
81 if ( first ) {
83 }
84 return StatusCode::SUCCESS;
85 }
86 }
87 return StatusCode::FAILURE;
88}
◆ SvcFactory< McCnvSvc >
Allow the factory class access to the constructor.
Definition at line 20 of file McCnvSvc.h.
The documentation for this class was generated from the following files: