ROOT logo
#ifndef HGEOMASCIIIO_H
#define HGEOMASCIIIO_H

using namespace std;
#include "hgeomio.h"
#include "TString.h"
#include <fstream>
#include <iomanip>

class HGeomAsciiIo : public HGeomIo {
  TString  filename;
  TString  filedir;
  Bool_t   writable;
  fstream* file;
public:
  HGeomAsciiIo();
  ~HGeomAsciiIo();
  void setDirectory(const Char_t* fDir) {filedir=fDir;}
  const Char_t* getDirectory() {return filedir.Data();}
  const Char_t* getFilename() {return filename.Data();}
  Bool_t open(const Char_t*,const Text_t* status="in");
  Bool_t isOpen();
  Bool_t isWritable();
  void close();
  void print();
  Bool_t read(HGeomMedia*);
  Bool_t read(HGeomSet*,HGeomMedia*);
  Bool_t read(HGeomHit*); 
  Bool_t write(HGeomMedia*);
  Bool_t write(HGeomSet* set);
  Bool_t write(HGeomHit* hit);
  Bool_t readGeomConfig(HGeomInterface*);
  Bool_t readDetectorSetup(HGeomInterface*);
  Bool_t setSimulRefRun(const Char_t*) {return kTRUE;}
  Bool_t setHistoryDate(const Char_t*) {return kTRUE;}
private:
  ClassDef(HGeomAsciiIo,0) // Class for geometry I/O from ASCII file
};

#endif  /* !HGEOMASCIIIO_H */
 hgeomasciiio.h:1
 hgeomasciiio.h:2
 hgeomasciiio.h:3
 hgeomasciiio.h:4
 hgeomasciiio.h:5
 hgeomasciiio.h:6
 hgeomasciiio.h:7
 hgeomasciiio.h:8
 hgeomasciiio.h:9
 hgeomasciiio.h:10
 hgeomasciiio.h:11
 hgeomasciiio.h:12
 hgeomasciiio.h:13
 hgeomasciiio.h:14
 hgeomasciiio.h:15
 hgeomasciiio.h:16
 hgeomasciiio.h:17
 hgeomasciiio.h:18
 hgeomasciiio.h:19
 hgeomasciiio.h:20
 hgeomasciiio.h:21
 hgeomasciiio.h:22
 hgeomasciiio.h:23
 hgeomasciiio.h:24
 hgeomasciiio.h:25
 hgeomasciiio.h:26
 hgeomasciiio.h:27
 hgeomasciiio.h:28
 hgeomasciiio.h:29
 hgeomasciiio.h:30
 hgeomasciiio.h:31
 hgeomasciiio.h:32
 hgeomasciiio.h:33
 hgeomasciiio.h:34
 hgeomasciiio.h:35
 hgeomasciiio.h:36
 hgeomasciiio.h:37
 hgeomasciiio.h:38
 hgeomasciiio.h:39
 hgeomasciiio.h:40