BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
McCnvSvc Class Reference

#include <McCnvSvc.h>

+ Inheritance diagram for McCnvSvc:

Friends

class SvcFactory< McCnvSvc >
 Allow the factory class access to the constructor.
 

: Object implementation


 McCnvSvc (const std::string &name, ISvcLocator *svc)
 Standard Constructor.
 
virtual ~McCnvSvc ()
 Standard Destructor.
 

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
 

Detailed Description

Definition at line 23 of file McCnvSvc.h.

Constructor & Destructor Documentation

◆ McCnvSvc()

McCnvSvc::McCnvSvc ( const std::string & name,
ISvcLocator * svc )

Standard Constructor.

Standard constructor.

Definition at line 37 of file McCnvSvc.cxx.

38: ConversionSvc( name, svc, storageType())
39{
40}
static unsigned char storageType()
storage type
Definition McCnvSvc.cxx:93

◆ ~McCnvSvc()

McCnvSvc::~McCnvSvc ( )
virtual

Standard Destructor.

Definition at line 43 of file McCnvSvc.cxx.

43 {
44}

Member Function Documentation

◆ finalize()

StatusCode McCnvSvc::finalize ( )
virtual

Definition at line 53 of file McCnvSvc.cxx.

53 {
54 MsgStream log(msgSvc(), name());
55 log << MSG::DEBUG << "RootCnvSvc::finalize" << endreq;
56
57 ConversionSvc::finalize();
58
59 return StatusCode::SUCCESS;
60}
IMessageSvc * msgSvc()

◆ initialize()

StatusCode McCnvSvc::initialize ( )
virtual

Initialize the service.

Definition at line 47 of file McCnvSvc.cxx.

47 {
48 MsgStream log(msgSvc(), name());
49 StatusCode status = ConversionSvc::initialize();
50 return status;
51}

◆ queryInterface()

StatusCode McCnvSvc::queryInterface ( const InterfaceID & riid,
void ** ppvInterface )
virtual

Override inherited queryInterface due to enhanced interface.

Definition at line 62 of file McCnvSvc.cxx.

62 {
63
64 if ( IID_IMcCnvSvc == riid ) {
65 *ppvInterface = (McCnvSvc*)this;
66 }
67 else {
68 // Interface is not directly availible: try out a base class
69 return ConversionSvc::queryInterface(riid, ppvInterface);
70 }
71 addRef();
72 return StatusCode::SUCCESS;
73}

◆ storageType()

unsigned char McCnvSvc::storageType ( )
static

storage type

Definition at line 93 of file McCnvSvc.cxx.

93 {
94 static unsigned char type=0x10;
95 return type;
96}

Referenced by McEventCnv::repSvcType(), and McEventCnv::storageType().

◆ updateServiceState()

StatusCode McCnvSvc::updateServiceState ( IOpaqueAddress * pAddress)
virtual

Update state of the service.

Definition at line 76 of file McCnvSvc.cxx.

76 {
77 MsgStream log(messageService(), name());
78 static bool first = true;
79 // static int fid = 0;
80 // static int recid = 0;
81 if ( 0 != pAddress ) {
82 GenericAddress* pAddr = dynamic_cast<GenericAddress*>(pAddress);
83 if ( 0 != pAddr ) {
84 if ( first ) {
85 first = false;
86 }
87 return StatusCode::SUCCESS;
88 }
89 }
90 return StatusCode::FAILURE;
91}
Index first(Pair i)

Friends And Related Symbol Documentation

◆ SvcFactory< McCnvSvc >

friend class SvcFactory< McCnvSvc >
friend

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: