BOSS 7.0.5
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 (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.
 
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
 
static unsigned char storageType ()
 storage type
 

Detailed Description

Constructor & Destructor Documentation

◆ McCnvSvc() [1/2]

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() [1/2]

McCnvSvc::~McCnvSvc ( )
protectedvirtual

Standard Destructor.

Definition at line 40 of file McCnvSvc.cxx.

40 {
41}

◆ McCnvSvc() [2/2]

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

Standard Constructor.

◆ ~McCnvSvc() [2/2]

virtual McCnvSvc::~McCnvSvc ( )
protectedvirtual

Standard Destructor.

Member Function Documentation

◆ finalize() [1/2]

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}

◆ finalize() [2/2]

virtual StatusCode McCnvSvc::finalize ( )
virtual

◆ initialize() [1/2]

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}

◆ initialize() [2/2]

virtual StatusCode McCnvSvc::initialize ( )
virtual

Initialize the service.

◆ queryInterface() [1/2]

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}

◆ queryInterface() [2/2]

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

Override inherited queryInterface due to enhanced interface.

◆ storageType() [1/2]

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().

◆ storageType() [2/2]

static unsigned char McCnvSvc::storageType ( )
static

storage type

◆ updateServiceState() [1/2]

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

◆ updateServiceState() [2/2]

virtual StatusCode McCnvSvc::updateServiceState ( IOpaqueAddress *  pAddress)
virtual

Update state of the service.

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 Generator/McEventSelector/McEventSelector-01-00-13/McEventSelector/McCnvSvc.h.


The documentation for this class was generated from the following files: