All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RootConverter.h
Go to the documentation of this file.
1 // $Id: RootConverter.h,v 1.5 2010-08-24 14:03:03 frankb Exp $
2 //====================================================================
3 // RootConverter class definition
4 //
5 // Author : M.Frank
6 //====================================================================
7 #ifndef GAUDIROOTCNV_ROOTCONVERTER_H
8 #define GAUDIROOTCNV_ROOTCONVERTER_H
9 
10 // Framework include files
11 #include "GaudiKernel/Converter.h"
12 #include "RootCnv/RootCnvSvc.h"
13 
14 /*
15  * Gaudi namespace declaration
16  */
17 namespace Gaudi {
18 
34  protected:
35 
38 
39  public:
40 
48  RootConverter(long typ, const CLID& clid, ISvcLocator* svc, RootCnvSvc* mgr)
49  : Converter(typ, clid, svc), m_dbMgr(mgr) {}
50 
52  virtual ~RootConverter() {}
53 
55  virtual long repSvcType() const { return i_repSvcType(); }
56 
64  virtual StatusCode createObj(IOpaqueAddress* pAddr, DataObject*& refpObj)
65  { return m_dbMgr->i__createObj(pAddr, refpObj); }
66 
75  { return m_dbMgr->i__fillObjRefs(pAddr, pObj); }
76 
85  virtual StatusCode createRep(DataObject* pObj, IOpaqueAddress*& refpAddr)
86  { return m_dbMgr->i__createRep(pObj, refpAddr); }
87 
96  { return m_dbMgr->i__fillRepRefs(pAddr, pObj); }
97  };
98 }
99 
100 #endif // GAUDIROOTCNV_ROOTCONVERTER_H
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:26
virtual ~RootConverter()
Standard Destructor.
Definition: RootConverter.h:52
RootConverter(long typ, const CLID &clid, ISvcLocator *svc, RootCnvSvc *mgr)
Initializing Constructor.
Definition: RootConverter.h:48
RootCnvSvc * m_dbMgr
Conversion service needed for proper operation to forward requests.
Definition: RootConverter.h:37
Description:
Definition: RootCnvSvc.h:54
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:30
virtual long repSvcType() const
Retrieve the class type of the data store the converter uses.
Definition: RootConverter.h:55
virtual StatusCode fillRepRefs(IOpaqueAddress *pAddr, DataObject *pObj)
Resolve the references of the created transient object.
Definition: RootConverter.h:95
unsigned int CLID
Class ID definition.
Definition: ClassID.h:9
Converter base class.
Definition: Converter.h:24
virtual StatusCode fillObjRefs(IOpaqueAddress *pAddr, DataObject *pObj)
Resolve the references of the created transient object.
Definition: RootConverter.h:74
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&refpObj)
Converter overrides: Create transient object from persistent data.
Definition: RootConverter.h:64
virtual StatusCode createRep(DataObject *pObj, IOpaqueAddress *&refpAddr)
Converter overrides: Convert the transient object to the requested representation.
Definition: RootConverter.h:85
Opaque address interface definition.
This is a number of static methods for bootstrapping the Gaudi framework.
Definition: Bootstrap.h:14
#define GAUDI_API
Definition: Kernel.h:108
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:31
Description: Definition of the ROOT data converter.
Definition: RootConverter.h:33