#if !defined H_GEOINPUT_H #define H_GEOINPUT_H // // Reads and stores filenames from initialization-file "geoinifile.cmd" // A number of maxFiles files can be stored in the array fname // Is instantiatiated as a global class in hgeoinitialize.cc // #include "hades.h" #include "hadexitcodes.h" #include "hstring.h" #include class HGeoInput { public: // maximum number of files read from initialization-file int maxFiles; // Constructor called with name of initialization-file as parameter HGeoInput(const HString & s) { sourceFile=s; maxFiles=10; noFiles=0; fName=new HString [maxFiles]; key="files:"; } ~HGeoInput(){ delete [] fName; } // reads filenames from initialization-file and // to store them in the array fName int readFileNames(); // shows all filenames stored array fName void showFileNames(); // returns the number of filenames int getNoFiles() {return noFiles;} // returns the filename from the array at position (index) HString & getFileName(int index) { if(index>=0 && index