FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairGenericParAsciiFileIo.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 FAIRGENERICPARASCIIFILEIO_H
9 #define FAIRGENERICPARASCIIFILEIO_H
10 
11 #include "FairDetParAsciiFileIo.h" // for FairDetParAsciiFileIo
12 
13 #include <Rtypes.h> // for Int_t, Bool_t, etc
14 #include <iosfwd> // for fstream
15 
16 class FairParGenericSet;
17 class FairParSet;
18 class TString;
19 
21 {
22  public:
23  FairGenericParAsciiFileIo(std::fstream* f = 0);
25  Bool_t init(FairParSet*);
26  Int_t write(FairParSet*);
27 
28  private:
30  0) // I/O from Ascii file for parameter containers derived from FairParGenericSet
31  Bool_t readGenericSet(FairParGenericSet* pPar);
32  Int_t writeGenericSet(FairParGenericSet* pPar);
33 
34  template<class type>
35  const UChar_t* readData(type, const Char_t*, TString&, Int_t&);
36  template<class type>
37  void writeData(type*, Int_t);
38 };
39 
40 #endif /* !FAIRGENERICPARASCIIFILEIO_H */
FairGenericParAsciiFileIo(std::fstream *f=0)