00001 #ifndef PARAMETERMAP_H
00002 #define PARAMETERMAP_H
00003
00004 #include <map>
00005 #include <string>
00006 #include <sstream>
00007 #include <vector>
00008 #include <fstream>
00009 #include <iostream>
00010
00011 using namespace std;
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 typedef map<string,string> parametermap;
00032
00033
00034 namespace parameter {
00035 bool getB(parametermap ,string ,bool);
00036 int getI(parametermap ,string ,int);
00037 string getS(parametermap ,string ,string);
00038 double getD(parametermap ,string ,double);
00039 vector< double > getV(parametermap, string, double);
00040 vector< string > getVS(parametermap, string, string);
00041 vector< vector< double > > getM(parametermap, string, double);
00042 void set(parametermap&, string, double);
00043 void set(parametermap&, string, int);
00044 void set(parametermap&, string, bool);
00045 void set(parametermap&, string, string);
00046 void set(parametermap&, string, char*);
00047 void set(parametermap&, string, vector< double >);
00048 void set(parametermap&, string, vector< string >);
00049 void set(parametermap&, string, vector< vector< double > >);
00050 void ReadParsFromFile(parametermap&, const char *filename);
00051 void PrintPars(parametermap&);
00052 };
00053
00054 #endif
00055