/home/cern/BDSIM_new/include/BDSMySQLWrapper.hh

00001 /* * BDSIM code.    Version 1.0
00002    * Author: Grahame A. Blair, Royal Holloway, Univ. of London.
00003    * Last modified 24.7.2002
00004    * Copyright (c) 2002 by G.A.Blair.  ALL RIGHTS RESERVED. 
00005 
00006 
00007    Author of this code: John C. Carter, Royal Holloway, Univ. of London.
00008    Last modified 12.10.2005
00009 */
00010 
00011 
00012 #ifndef BDSMySQLWrapper_h
00013 #define BDSMySQLWrapper_h 1
00014 
00015 #include "BDSAcceleratorComponent.hh"
00016 #include "BDSMySQLTable.hh"
00017 #include <fstream>
00018 #include <vector>
00019 
00020 //using namespace std;
00021 
00022 class BDSMySQLWrapper 
00023 {
00024 public:
00025   BDSMySQLWrapper (const G4String& SQLFileName);
00026   ~BDSMySQLWrapper();
00027   
00028   std::vector<BDSMySQLTable*> ConstructTable();
00029 
00030   G4int GetComponentN() {return ComponentN;}
00031  
00032   std::vector<BDSMySQLTable*> table;
00033 
00034 protected:
00035   
00036 private:
00037   // Data Members for Class Attributes
00038 
00039   ifstream ifs;
00040   
00041   G4String CurrentTableName;
00042   G4String InsertTableName;
00043   G4int ComponentN;
00044 
00045   G4int tableN;
00046 
00047   G4int ReadComponent ();
00048 };
00049 
00050 #endif

Generated on Wed Mar 5 17:25:22 2008 for BDSIM by  doxygen 1.5.3