EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairGeoAsciiIo.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file FairGeoAsciiIo.h
1 #ifndef FAIRGEOASCIIIO_H
2 #define FAIRGEOASCIIIO_H
3 
4 #include "FairGeoIo.h"
5 
6 #include "TString.h"
7 
8 #include <fstream>
9 //#include <iomanip>
10 
11 class FairGeoSet;
12 class FairGeoMedia;
13 class FairGeoInterface;
14 
20 {
21  TString filename;
22  TString filedir;
23  Bool_t writable;
24  std::fstream* file;
25  public:
27  virtual ~FairGeoAsciiIo();
28  void setDirectory(const char* fDir) {filedir=fDir;}
29  const char* getDirectory() {return filedir.Data();}
30  const char* getFilename() {return filename.Data();}
31  Bool_t open(const char*,const Text_t* status="in");
32  Bool_t isOpen();
33  Bool_t isWritable();
34  void close();
35  void print();
36  Bool_t read(FairGeoMedia*);
37  Bool_t read(FairGeoSet*,FairGeoMedia*);
38  Bool_t write(FairGeoMedia*);
39  Bool_t write(FairGeoSet* set);
42  Bool_t setSimulRefRun(const char*) {return kTRUE;}
43  Bool_t setHistoryDate(const char*) {return kTRUE;}
44  private:
47  ClassDef(FairGeoAsciiIo,0) // Class for geometry I/O from ASCII file
48 };
49 
50 #endif /* !FAIRGEOASCIIIO_H */