24 if (default_double.find(name) == default_double.end())
26 default_double[name] = dval;
30 cout <<
"trying to overwrite default double " << name <<
" "
31 << default_double[name] <<
" with " << dval << endl;
40 if (default_int.find(name) == default_int.end())
42 default_int[name] = ival;
46 cout <<
"trying to overwrite default int " << name <<
" "
47 << default_int[name] <<
" with " << ival << endl;
56 if (default_string.find(name) == default_string.end())
58 default_string[name] = sval;
62 cout <<
"trying to overwrite default string " << name <<
" "
63 << default_string[name] <<
" with " << sval << endl;
71 if (default_double.find(name) == default_double.end())
73 cout <<
"double parameter " << name <<
" not implemented" << endl;
74 cout <<
"implemented double parameters are:" << endl;
75 for (map<const string, double>::const_iterator iter = default_double.begin(); iter != default_double.end(); ++iter)
77 cout << iter->first << endl;
93 if (default_int.find(name) == default_int.end())
95 cout <<
"integer parameter " << name <<
" not implemented" << endl;
96 cout <<
"implemented integer parameters are:" << endl;
97 for (map<const string, int>::const_iterator iter = default_int.begin(); iter != default_int.end(); ++iter)
99 cout << iter->first << endl;
103 iparams[name] = ival;
115 if (default_string.find(name) == default_string.end())
117 cout <<
"string parameter " << name <<
" not implemented" << endl;
118 cout <<
"implemented string parameters are:" << endl;
119 for (map<const string, string>::const_iterator iter = default_string.begin(); iter != default_string.end(); ++iter)
121 cout << iter->first << endl;
125 cparams[name] = sval;
137 for (map<const string,double>::const_iterator iter = dparams.begin(); iter != dparams.end(); ++iter)
141 for (map<const string,int>::const_iterator iter = iparams.begin(); iter != iparams.end(); ++iter)
145 for (map<const string,string>::const_iterator iter = cparams.begin(); iter != cparams.end(); ++iter)
170 for (map<const string,double>::const_iterator iter = default_double.begin(); iter != default_double.end(); ++iter)
174 for (map<const string,int>::const_iterator iter = default_int.begin(); iter != default_int.end(); ++iter)
178 for (map<const string,string>::const_iterator iter = default_string.begin(); iter != default_string.end(); ++iter)
PHBoolean addNode(PHNode *)
void set_double_param(const std::string &name, const double dval)
void set_paramname(const std::string &name)
virtual void SetDefaultParameters()=0
void InitializeParameters()
void set_string_param(const std::string &name, const std::string &sval)
std::string get_string_param(const std::string &name) const
PHParameterInterface(const std::string &name)
void PutOnParNode(PHCompositeNode *parNode, const std::string &nodename)
void set_default_double_param(const std::string &name, const double dval)
void set_int_param(const std::string &name, const int ival)
double get_double_param(const std::string &name) const
void SaveToNodeTree(PHCompositeNode *runNode, const std::string &nodename)
void set_default_string_param(const std::string &name, const std::string &sval)
void set_default_int_param(const std::string &name, const int ival)
void UpdateParametersWithMacro()
int get_int_param(const std::string &name) const
void set_string_param(const std::string &name, const std::string &str)
double get_double_param(const std::string &name) const
void set_name(const std::string &name)
int get_int_param(const std::string &name) const
void set_int_param(const std::string &name, const int ival)
void set_double_param(const std::string &name, const double dval)
void SaveToNodeTree(PHCompositeNode *topNode, const std::string &nodename)
std::string get_string_param(const std::string &name) const