00001 #ifndef INPUTDATA_H
00002 #define INPUTDATA_H
00003
00011 #include "calc.hh"
00012 using namespace calc_load;
00013
00014 #include <fstream>
00015 #include <sstream>
00016 #include <iostream>
00017 #include <string>
00018 #include <stdlib.h>
00019 using namespace std;
00020
00021
00022
00023 #ifdef SINGLE
00024 #define real float
00025 #else
00026 #define real double
00027 #endif
00028
00035 class inputData {
00036
00037 public:
00041 inputData();
00042
00049 void read(string s, real &sValue);
00050
00057 void read(string s, int &sValue);
00058
00062 ~inputData();
00063
00064 private:
00065
00066 string filename;
00067
00068 Calculator<double> ee ;
00069
00070 bool ok;
00071
00072 };
00073
00074 #endif