EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairGeoOldAsciiIo.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file FairGeoOldAsciiIo.h
1 #ifndef FAIRGEOOLDASCIIIO_H
2 #define FAIRGEOOLDASCIIIO_H
3 
4 #include "FairGeoIo.h"
5 
6 #include "TString.h"
7 
8 #include <fstream>
9 
10 class FairGeoNode;
11 
17 {
18  TString filename;
19  TString filedir;
20  Bool_t writable;
21  std::fstream* file;
22  public:
25  void setDirectory(const char* fDir) {filedir=fDir;}
26  const char* getDirectory() {return filedir.Data();}
27  const char* getFilename() {return filename.Data();}
28  Bool_t open(const char*,const Text_t* status="in");
29  Bool_t isOpen();
30  Bool_t isWritable();
31  void close();
32  void print();
33  Bool_t read(FairGeoMedia*) {return kFALSE;}
34  Bool_t read(FairGeoSet*,FairGeoMedia*);
35  Bool_t write(FairGeoMedia*) {return kFALSE;}
36  Bool_t write(FairGeoSet* set) {return kFALSE;}
37  Bool_t readGeomConfig(FairGeoInterface*) {return kFALSE;}
38  Bool_t readDetectorSetup(FairGeoInterface*) {return kFALSE;}
39  Bool_t setSimulRefRun(const char*) {return kTRUE;}
40  Bool_t setHistoryDate(const char*) {return kTRUE;}
41  private:
42  Bool_t calculateShapePoints(Double_t*,FairGeoNode*);
45 
46  ClassDef(FairGeoOldAsciiIo,0) //
47 };
48 
49 #endif /* !FAIRGEOOLDASCIIIO_H */