FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairGeoOldAsciiIo.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 FAIRGEOOLDASCIIIO_H
9 #define FAIRGEOOLDASCIIIO_H
10 
11 #include "FairGeoIo.h" // for FairGeoIo
12 
13 #include <Rtypes.h> // for Bool_t, kFALSE, etc
14 #include <TString.h> // for TString
15 #include <iosfwd> // for fstream
16 
17 class FairGeoInterface;
18 class FairGeoMedia;
19 class FairGeoNode;
20 class FairGeoSet;
21 
27 {
28  TString filename;
29  TString filedir;
30  Bool_t writable;
31  std::fstream* file;
32 
33  public:
36  void setDirectory(const char* fDir) { filedir = fDir; }
37  const char* getDirectory() { return filedir.Data(); }
38  const char* getFilename() { return filename.Data(); }
39  Bool_t open(const char*, const Text_t* status = "in");
40  Bool_t isOpen();
41  Bool_t isWritable();
42  void close();
43  void print();
44  Bool_t read(FairGeoMedia*) { return kFALSE; }
45  Bool_t read(FairGeoSet*, FairGeoMedia*);
46  Bool_t write(FairGeoMedia*) { return kFALSE; }
47  Bool_t write(FairGeoSet*) { return kFALSE; }
48  Bool_t readGeomConfig(FairGeoInterface*) { return kFALSE; }
49  Bool_t readDetectorSetup(FairGeoInterface*) { return kFALSE; }
50  Bool_t setSimulRefRun(const char*) { return kTRUE; }
51  Bool_t setHistoryDate(const char*) { return kTRUE; }
52 
53  private:
54  Bool_t calculateShapePoints(Double_t*, FairGeoNode*);
56  FairGeoOldAsciiIo& operator=(const FairGeoOldAsciiIo&);
57 
58  ClassDef(FairGeoOldAsciiIo, 0); //
59 };
60 
61 #endif /* !FAIRGEOOLDASCIIIO_H */
Bool_t setHistoryDate(const char *)
Bool_t write(FairGeoSet *)
Bool_t write(FairGeoMedia *)
Bool_t setSimulRefRun(const char *)
Bool_t read(FairGeoMedia *)
const char * getFilename()
Bool_t open(const char *, const Text_t *status="in")
const char * getDirectory()
Bool_t readGeomConfig(FairGeoInterface *)
void setDirectory(const char *fDir)
Bool_t readDetectorSetup(FairGeoInterface *)