FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairDetParAsciiFileIo.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 FAIRDETPARASCIIFILEIO_H
9 #define FAIRDETPARASCIIFILEIO_H
10 
11 #include "FairDetParIo.h" // for FairDetParIo
12 
13 #include <Rtypes.h> // for Text_t, Bool_t, etc
14 #include <TString.h> // for TString
15 #include <iosfwd> // for fstream
16 
17 class FairParSet;
18 
20 {
21  protected:
22  TString fHeader;
23  TString sepLine;
24  std::fstream* pFile;
25  // virtual Bool_t write(HDetector*) {return kTRUE;}
26  Bool_t findContainer(const Text_t* name);
27  Bool_t checkAllFound(Int_t*, Int_t);
28  void writeHeader(const Text_t*,
29  const Text_t* context = "",
30  const Text_t* author = "",
31  const Text_t* description = "");
32  void writeComment(FairParSet*);
33  void readComment(const Char_t*, FairParSet*);
34  // Bool_t readLabPositions(const Text_t*,HDetGeomPar*,Int_t*,Int_t,Int_t);
35  // Bool_t readVolumes(const Text_t*,HDetGeomPar*);
36  // void readTransform(HGeomTransform&);
37  // Bool_t readVolume(HGeomVolume*,HGeomShapes*,Text_t*);
38  // void writeTransform(const HGeomTransform&);
39  // void writeVolume(HGeomVolume*,HGeomShapes*);
40 
41  public:
42  FairDetParAsciiFileIo(std::fstream* f);
44  // Bool_t read(HDetGeomPar*,Int_t*);
45  // Int_t writeFile(HDetGeomPar*);
46 
47  private:
50 
51  ClassDef(FairDetParAsciiFileIo, 0); // Class for detector parameter I/O from ascii file
52 };
53 
54 #endif /* !FAIRDETPARASCIIFILEIO_H */
Bool_t findContainer(const Text_t *name)
pointer to ascii file
TString sepLine
header of container output in file
void readComment(const Char_t *, FairParSet *)
std::fstream * pFile
comment line
void writeComment(FairParSet *)
void writeHeader(const Text_t *, const Text_t *context="", const Text_t *author="", const Text_t *description="")
Bool_t checkAllFound(Int_t *, Int_t)
FairDetParAsciiFileIo(std::fstream *f)