| The Gaudi Framework v27r1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

RFileCnv.h
Go to the documentation of this file.
1 #ifndef ROOTHISTCNV_RFILECNV_H
2 #define ROOTHISTCNV_RFILECNV_H 1
3
4 // Include files
5 #include "GaudiKernel/NTuple.h"
6 #include "RDirectoryCnv.h"
7
8 class TFile;
9
10 namespace RootHistCnv {
11
22 class RFileCnv : public RDirectoryCnv
23 {
24
25 public:
26
28 StatusCode initialize() override;
29
30 public:
31
33 StatusCode createObj( IOpaqueAddress* pAddress, DataObject*& refpObject ) override;
35 StatusCode createRep( DataObject* pObject, IOpaqueAddress*& refpAddress ) override;
37 StatusCode updateRep( IOpaqueAddress* pAddress, DataObject* pObject ) override;
38
39 public:
40
42 static const CLID& classID() {
43 return CLID_NTupleFile;
44 }
45
47 RFileCnv( ISvcLocator* svc );
48
50 ~RFileCnv() override = default;
51
52 protected:
53
54 TFile *rfile;
55 std::string m_compLevel;
56
57 };
58 } // namespace RootHistCnv
59 #endif // RootHistCnv_RFileCNV_H
RootHistCnv::RFileCnv::rfile
TFile * rfile
Pointer to ROOT file.
Definition: RFileCnv.h:54
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
RDirectoryCnv.h
RootHistCnv::RFileCnv::classID
static const CLID & classID()
Inquire class type.
Definition: RFileCnv.h:42
RootHistCnv::RFileCnv::initialize
StatusCode initialize() override
Initialise.
Definition: RFileCnv.cpp:31
NTuple.h
RootHistCnv::RFileCnv::createRep
StatusCode createRep(DataObject *pObject, IOpaqueAddress *&refpAddress) override
Convert the transient object to the requested representation.
Definition: RFileCnv.cpp:152
RootHistCnv::RFileCnv::updateRep
StatusCode updateRep(IOpaqueAddress *pAddress, DataObject *pObject) override
Convert the transient object to the requested representation.
Definition: RFileCnv.cpp:161
RootHistCnv::RFileCnv::RFileCnv
RFileCnv(ISvcLocator *svc)
Standard constructor.
Definition: RFileCnv.cpp:26
std::string
STL class.
RootHistCnv::RFileCnv
NTuple converter class definition.
Definition: RFileCnv.h:22
RootHistCnv::RFileCnv::createObj
StatusCode createObj(IOpaqueAddress *pAddress, DataObject *&refpObject) override
Create the transient representation of an object.
Definition: RFileCnv.cpp:47
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
RootHistCnv::RDirectoryCnv
Create persistent and transient representations of data store directories.
Definition: RDirectoryCnv.h:16
RootHistCnv
Definition: DirectoryCnv.h:17
CLID
unsigned int CLID
Class ID definition.
Definition: ClassID.h:8
RootHistCnv::RFileCnv::m_compLevel
std::string m_compLevel
Compression setting.
Definition: RFileCnv.h:55
RootHistCnv::RFileCnv::~RFileCnv
~RFileCnv() override=default
Standard destructor.
IOpaqueAddress
Opaque address interface definition.
Definition: IOpaqueAddress.h:23
DataObject
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:30