BOSS 7.0.8
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 <br>

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

McCnvSvc overrides <br>

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 
)
protected

Standard Constructor.

Standard constructor.

Definition at line 34 of file McCnvSvc.cxx.

35: ConversionSvc( name, svc, storageType())
36{
37}
static unsigned char storageType()
storage type
Definition: McCnvSvc.cxx:90

◆ ~McCnvSvc()

McCnvSvc::~McCnvSvc ( )
protectedvirtual

Standard Destructor.

Definition at line 40 of file McCnvSvc.cxx.

40 {
41}

Member Function Documentation

◆ 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}
IMessageSvc * msgSvc()

◆ 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 ) {
62 *ppvInterface = (McCnvSvc*)this;
63 }
64 else {
65 // Interface is not directly availible: try out a base class
66 return ConversionSvc::queryInterface(riid, ppvInterface);
67 }
68 addRef();
69 return StatusCode::SUCCESS;
70}

◆ storageType()

unsigned char McCnvSvc::storageType ( )
static

storage type

Definition at line 90 of file McCnvSvc.cxx.

90 {
91 static unsigned char type=0x10;
92 return type;
93}

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

◆ 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 // static int fid = 0;
77 // static int recid = 0;
78 if ( 0 != pAddress ) {
79 GenericAddress* pAddr = dynamic_cast<GenericAddress*>(pAddress);
80 if ( 0 != pAddr ) {
81 if ( first ) {
82 first = false;
83 }
84 return StatusCode::SUCCESS;
85 }
86 }
87 return StatusCode::FAILURE;
88}
Index first(Pair i)
Definition: EvtCyclic3.cc:195

Friends And Related Function 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: