FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairDetParRootFileIo.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 #ifndef FAIRDETPARROOTFILEIO_H
9 #define FAIRDETPARROOTFILEIO_H
10 
11 #include "FairDetParIo.h" // for FairDetParIo
12 
13 #include <Rtypes.h> // for Int_t, Text_t, etc
14 
15 class FairParRootFile;
16 class FairParSet;
17 class TObject;
18 
20 {
21  protected:
22  FairParRootFile* pFile; // pointer to parameter ROOT file
23 
24  public:
26  virtual ~FairDetParRootFileIo() {}
27  virtual Bool_t read(FairParSet*);
28  Int_t write(FairParSet*);
29  // Bool_t read(HDetGeomPar*,Int_t*);
30 
31  protected:
32  Int_t findInputVersion(Text_t* contName);
33  Int_t getMaxVersion(Text_t* contName);
34  TObject* findContainer(Text_t* contName, Int_t version);
35 
36  private:
38  FairDetParRootFileIo& operator=(const FairDetParRootFileIo&);
39 
40  ClassDef(FairDetParRootFileIo, 0); // detector base class for parameter I/O from ROOT file
41 };
42 
43 #endif /* !FAIRDETPARROOTFILEIO_H */
virtual Bool_t read(FairParSet *)
FairDetParRootFileIo(FairParRootFile *f)
Int_t write(FairParSet *)
Int_t findInputVersion(Text_t *contName)
TObject * findContainer(Text_t *contName, Int_t version)
Int_t getMaxVersion(Text_t *contName)
FairParRootFile * pFile