BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
McCnvSvc.h
Go to the documentation of this file.
1// ============================================================
2// McCnvSvc.h
3// ------------------------------------------------------------
4//
5// Package : McEventSelector
6//
7// Author : Marjorie Shapiro
8// Modified Nov 10 I.H.
9// ============================================================
10#ifndef MCEVENTSELECTOR_MCCNVSVC_H
11#define MCEVENTSELECTOR_MCCNVSVC_H 1
12
13#include "GaudiKernel/ConversionSvc.h"
14
15class McEvtSelector;
16
17// Forward declarations
18template <class TYPE> class SvcFactory;
19
20static const InterfaceID IID_IMcCnvSvc( "IMcCnvSvc", 1, 0 );
21
22class McCnvSvc : public ConversionSvc {
23 /// Allow the factory class access to the constructor
24 friend class SvcFactory<McCnvSvc>;
25
26public:
27 /**@name McCnvSvc overrides */
28 //@{
29 /// Initialize the service.
30 virtual StatusCode initialize();
31
32 virtual StatusCode finalize();
33
34 /// Override inherited queryInterface due to enhanced interface
35 virtual StatusCode queryInterface( const InterfaceID& riid, void** ppvInterface );
36
37 /// Update state of the service
38 virtual StatusCode updateServiceState( IOpaqueAddress* pAddress );
39 /// storage type
40 static unsigned char storageType();
41
42 IConverter* createConverter( long typ, const CLID& wanted, const ICnvFactory* fac ) override;
43
44 // protected:
45public:
46 /**@name: Object implementation */
47 //@{
48 /// Standard Constructor
49 McCnvSvc( const std::string& name, ISvcLocator* svc );
50
51 /// Standard Destructor
52 virtual ~McCnvSvc();
53
54private:
55 /// access to the EventSelector
56 McEvtSelector* m_evtsel;
57};
58
59#endif // MCEVENTSELECTOR_MCCNVSVC_H
virtual StatusCode updateServiceState(IOpaqueAddress *pAddress)
Update state of the service.
Definition McCnvSvc.cxx:69
static unsigned char storageType()
storage type
Definition McCnvSvc.cxx:86
virtual StatusCode initialize()
Initialize the service.
Definition McCnvSvc.cxx:42
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvInterface)
Override inherited queryInterface due to enhanced interface.
Definition McCnvSvc.cxx:57
virtual ~McCnvSvc()
Standard Destructor.
Definition McCnvSvc.cxx:39
virtual StatusCode finalize()
Definition McCnvSvc.cxx:48
McCnvSvc(const std::string &name, ISvcLocator *svc)
Standard Constructor.
Definition McCnvSvc.cxx:35
IConverter * createConverter(long typ, const CLID &wanted, const ICnvFactory *fac) override
Definition McCnvSvc.cxx:91
Forward and external declarations.