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  StatusCode createObj(IOpaqueAddress* pAddr, DataObject*& refpObj) override;
21  StatusCode fillObjRefs(IOpaqueAddress* pAddr, DataObject* refpObj) override;
23  StatusCode createRep( DataObject* pObj, IOpaqueAddress*& refpAddr) override;
25  StatusCode updateRep( IOpaqueAddress* pAddr, DataObject* pObject ) override;
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  ~RDirectoryCnv() override = default;
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
~RDirectoryCnv() override=default
Standard destructor.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
StatusCode createRep(DataObject *pObj, IOpaqueAddress *&refpAddr) override
Convert the transient object to the requested representation.
StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&refpObj) override
Create the transient representation of an object.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
Create persistent and transient representations of data store directories.
Definition: RDirectoryCnv.h:16
unsigned int CLID
Class ID definition.
Definition: ClassID.h:8
StatusCode fillObjRefs(IOpaqueAddress *pAddr, DataObject *refpObj) override
Update the transient object from the other representation.
StatusCode updateRep(IOpaqueAddress *pAddr, DataObject *pObject) override
Convert the transient object to the requested 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
static const CLID & classID()
Inquire class type.
Definition: RDirectoryCnv.h:27