#ifndef HDETPARASCIIFILEIO_H
#define HDETPARASCIIFILEIO_H
using namespace std;
#include <fstream>
#include "hdetpario.h"
#include "TArrayI.h"
#include "hgeomtransform.h"
class HDetGeomPar;
class HGeomVolume;
class HGeomShapes;
class HDetector;
class HParCond;
class HDetParAsciiFileIo : public HDetParIo {
protected:
TString fHeader;
TString sepLine;
fstream* pFile;
virtual Bool_t write(HDetector*) {return kTRUE;}
Bool_t findContainer(const Text_t* name);
Bool_t checkAllFound(Int_t*,Int_t);
void writeHeader(const Text_t*, const Text_t* context="",
const Text_t* author="", const Text_t* description="");
void writeComment(HParSet*);
void readComment(const Char_t*, HParSet*);
Bool_t readLabPositions(const Text_t*,HDetGeomPar*,Int_t*,Int_t,Int_t);
Bool_t readVolumes(const Text_t*,HDetGeomPar*);
void readTransform(HGeomTransform&);
Bool_t readVolume(HGeomVolume*,HGeomShapes*,Text_t*);
void writeTransform(const HGeomTransform&);
void writeVolume(HGeomVolume*,HGeomShapes*);
template <class type> UChar_t* readData(type,const Char_t*,TString&,Int_t&);
template <class type> void writeData(type*,Int_t);
void writeHexData(UInt_t*,Int_t);
public:
HDetParAsciiFileIo(fstream* f);
virtual ~HDetParAsciiFileIo() {}
Bool_t read(HDetGeomPar*,Int_t*);
Int_t writeFile(HDetGeomPar*);
Bool_t readCond(HParCond* pPar);
Int_t writeCond(HParCond* pPar);
ClassDef(HDetParAsciiFileIo,0)
};
#endif /* !HDETPARASCIIFILEIO_H */
Last change: Sat May 22 12:54:35 2010
Last generated: 2010-05-22 12:54
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.