00001
00002
00003
00004
00005
00006
00007
00008
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
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
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