13 #include <framework/core/ModuleParamList.h>
14 #include <framework/core/ModuleParam.h>
15 #include <framework/logging/Logger.h>
32 const std::string& description,
33 const T& defaultValue)
35 ModuleParamPtr newParam(
new ModuleParam<T>(paramVariable, description,
false));
38 std::map<std::string, ModuleParamPtr>::iterator mapIter;
42 m_paramMap.insert(std::make_pair(name, newParam));
46 B2ERROR(
"A parameter with the name '" + name +
47 "' already exists! The name of a module parameter must be unique within a module.");
54 const std::string& description)
56 ModuleParamPtr newParam(
new ModuleParam<T>(paramVariable, description,
true));
59 std::map<std::string, ModuleParamPtr>::iterator mapIter;
63 m_paramMap.insert(std::make_pair(name, newParam));
65 B2ERROR(
"A parameter with the name '" + name +
66 "' already exists! The name of a module parameter must be unique within a module.");
74 ModuleParam<T>& explModParam = getParameter<T>(name);
75 explModParam.setValue(value);
76 }
catch (std::runtime_error& exc) {
85 std::map<std::string, ModuleParamPtr>::const_iterator mapIter;
105 template <
typename PythonObject>
110 p->setValueFromPythonObject(pyObj);
113 template <
typename PythonObject>
115 PythonObject& pyOutput,
116 bool defaultValues)
const
120 p->setValueToPythonObject(pyOutput, defaultValues);
121 }
catch (std::runtime_error& exc) {