RDirectoryCnv.h
Go to the documentation of this file.
1 #ifndef ROOTHIST_RDIRECTORYCNV_H
2 #define ROOTHIST_RDIRECTORYCNV_H 1
3 
4 // Include files
5 #include "GaudiKernel/NTuple.h"
6 #include "RConverter.h"
7 
8 namespace RootHistCnv {
9 
16  class RDirectoryCnv : public RConverter {
17  public:
19  virtual StatusCode createObj(IOpaqueAddress* pAddr, DataObject*& refpObj);
21  virtual StatusCode fillObjRefs(IOpaqueAddress* pAddr, DataObject* refpObj);
23  virtual StatusCode createRep( DataObject* pObj, IOpaqueAddress*& refpAddr);
25  virtual StatusCode updateRep( IOpaqueAddress* pAddr, DataObject* pObject );
27  static const CLID& classID() { return CLID_NTupleDirectory; }
29  RDirectoryCnv(ISvcLocator* svc) : RConverter(CLID_NTupleDirectory, svc) {}
31  RDirectoryCnv(ISvcLocator* svc,const CLID& clid) : RConverter(clid, svc){}
33  virtual ~RDirectoryCnv() {}
34  };
35 } // namespace RootHistCnv
36 
37 #endif // RootHistCnv_RDirectORYCNV_H
RDirectoryCnv(ISvcLocator *svc, const CLID &clid)
Standard constructor.
Definition: RDirectoryCnv.h:31
Root Converter.
Definition: RConverter.h:34
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
virtual StatusCode createRep(DataObject *pObj, IOpaqueAddress *&refpAddr)
Convert the transient object to the requested representation.
Create persistent and transient representations of data store directories.
Definition: RDirectoryCnv.h:16
virtual StatusCode updateRep(IOpaqueAddress *pAddr, DataObject *pObject)
Convert the transient object to the requested representation.
virtual ~RDirectoryCnv()
Standard destructor.
Definition: RDirectoryCnv.h:33
unsigned int CLID
Class ID definition.
Definition: ClassID.h:8
virtual StatusCode fillObjRefs(IOpaqueAddress *pAddr, DataObject *refpObj)
Update the transient object from the other representation.
Opaque address interface definition.
RDirectoryCnv(ISvcLocator *svc)
Standard constructor.
Definition: RDirectoryCnv.h:29
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:30
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&refpObj)
Create the transient representation of an object.
static const CLID & classID()
Inquire class type.
Definition: RDirectoryCnv.h:27