The Gaudi Framework  v29r0 (ff2e7097)
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 {
10 
17  class RDirectoryCnv : public RConverter
18  {
19  public:
21  StatusCode createObj( IOpaqueAddress* pAddr, DataObject*& refpObj ) override;
23  StatusCode fillObjRefs( IOpaqueAddress* pAddr, DataObject* refpObj ) override;
25  StatusCode createRep( DataObject* pObj, IOpaqueAddress*& refpAddr ) override;
27  StatusCode updateRep( IOpaqueAddress* pAddr, DataObject* pObject ) override;
29  static const CLID& classID() { return CLID_NTupleDirectory; }
31  RDirectoryCnv( ISvcLocator* svc ) : RConverter( CLID_NTupleDirectory, svc ) {}
33  RDirectoryCnv( ISvcLocator* svc, const CLID& clid ) : RConverter( clid, svc ) {}
35  ~RDirectoryCnv() override = default;
36  };
37 } // namespace RootHistCnv
38 
39 #endif // RootHistCnv_RDirectORYCNV_H
RDirectoryCnv(ISvcLocator *svc, const CLID &clid)
Standard constructor.
Definition: RDirectoryCnv.h:33
Root Converter.
Definition: RConverter.h:33
~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:28
Create persistent and transient representations of data store directories.
Definition: RDirectoryCnv.h:17
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:31
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:29
static const CLID & classID()
Inquire class type.
Definition: RDirectoryCnv.h:29