ATM_Param.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef ATM_PARAM_INCLUDED
00014 #define ATM_PARAM_INCLUDED
00015
00016
00017 #include "UtilParameters.h"
00018
00019 using namespace std;
00020
00021
00028
00029 class ATM_Param {
00030 public:
00031 int LogLevel;
00032 string DataDir;
00033 string DataAtm;
00034 string DataDate;
00035 string DataAtmDate;
00036 int NumSteps;
00037 bool UseTightModel;
00038 string ModelNameCore;
00039 string ModelNameRelax;
00040 string ModelNameRelaxNest;
00041
00042 public:
00043 void getSettings(UtilParameters & utilParam){
00044 static const char * common = "ATM";
00045 LogLevel = utilParam.GetSetting("LogLevel", 0, common);
00046 DataDir = utilParam.GetSetting("DataDir", "", common);
00047 DataAtm = utilParam.GetSetting("DataAtm", "", common);
00048 DataDate = utilParam.GetSetting("DataDate", "", common);
00049 DataAtmDate = utilParam.GetSetting("DataAtmDate", "", common);
00050 NumSteps = utilParam.GetSetting("NumSteps", 10, common);
00051 UseTightModel = utilParam.GetSetting("UseTightModel", true, common);
00052 ModelNameCore = utilParam.GetSetting("ModelNameCore", "", common);
00053 ModelNameRelax = utilParam.GetSetting("ModelNameRelax", "", common);
00054 ModelNameRelaxNest
00055 = utilParam.GetSetting("ModelNameRelaxNest", "", common);
00056 }
00057
00058 void dumpSettings(ostream * os = &cout){
00059 static const char * common = "ATM";
00060 (*os) << "\n=====================================================\n"
00061 << "ATM_DECOMP PARAMETER SETTINGS \n";
00062 (*os) << common << ": LogLevel : " << LogLevel << endl;
00063 (*os) << common << ": DataDir : " << DataDir << endl;
00064 (*os) << common << ": DataAtm : " << DataAtm << endl;
00065 (*os) << common << ": DataDate : " << DataDate << endl;
00066 (*os) << common << ": DataAtmDate : " << DataAtmDate << endl;
00067 (*os) << common << ": NumSteps : " << NumSteps << endl;
00068 (*os) << common << ": UseTightModel : " << UseTightModel << endl;
00069 (*os) << common << ": ModelNameCore : " << ModelNameCore << endl;
00070 (*os) << common << ": ModelNameRelax : " << ModelNameRelax << endl;
00071 (*os) << common << ": ModelNameRelaxNest: " << ModelNameRelaxNest<< endl;
00072 (*os) << "=====================================================\n";
00073 }
00074
00075 public:
00076 ATM_Param():
00077 LogLevel (0),
00078 DataDir (""),
00079 DataAtm (""),
00080 DataDate (""),
00081 DataAtmDate (""),
00082 NumSteps (0),
00083 UseTightModel (true),
00084 ModelNameCore (""),
00085 ModelNameRelax (""),
00086 ModelNameRelaxNest(""){};
00087 ~ATM_Param() {};
00088 };
00089
00090 #endif