Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

GLG4InputDataReader.hh

00001 // This file is part of the GenericLAND software library.
00002 // $Id: GLG4InputDataReader.hh,v 1.1.1.1 2004/12/21 22:29:48 GLG4sim Exp $
00003 //
00004 // GLG4InputDataReader.hh
00005 // v.0 by Glenn Horton-Smith, Feb 12, 1999
00006 // adapted for namespace support in Geant4.1, 4.2 -- 14-Jul-2000
00007 
00008 #ifndef GLG4InputDataReader_H
00009 #define GLG4InputDataReader_H 1
00010 
00011 #include "iostream"
00012 #include "globals.hh"
00013 #include "local_g4compat.hh"
00014 
00015 
00016 class GLG4InputDataReader {
00017 public:
00018 
00019   class MyTokenizer {
00020   private:
00021     G4std::istream *isptr;
00022   public:
00023     MyTokenizer(G4std::istream &is) { isptr= &is; nval=0.0;}
00024     
00025     enum { TT_EOF=-1, TT_STRING='a', TT_NUMBER='0' };
00026     
00027     int ttype;
00028 
00029     G4double nval;
00030     G4String sval;
00031 
00032     int nextToken(void);
00033 
00034     void dumpOn(G4std::ostream &os);
00035   };
00036   
00037   static int ReadMaterials(G4std::istream &is);
00038 };
00039 
00040 #endif // GLG4InputDataReader_H

Generated on Fri Jul 6 13:31:46 2007 for GLG4sim by  doxygen 1.3.9.1