11 #include <boost/python/class.hpp>
13 #include <framework/core/ModuleParamInfoPython.h>
17 using namespace boost::python;
19 void ModuleParamInfoPython::exposePythonAPI()
22 boost::python::class_<ModuleParamInfoPython>(
"ModuleParamInfo",
23 "Read only class to provide information about a module parameter")
24 .def_readonly(
"name", &ModuleParamInfoPython::m_name,
25 "Name of the Parameter")
26 .def_readonly(
"type", &ModuleParamInfoPython::m_typeName,
27 "Type of the Parameter as string")
28 .def_readonly(
"default", &ModuleParamInfoPython::m_defaultValues,
29 "Default value of the parameter")
30 .def_readonly(
"values", &ModuleParamInfoPython::m_values,
31 "Currently set value")
32 .def_readonly(
"description", &ModuleParamInfoPython::m_description,
33 "Description of the parameter")
34 .def_readonly(
"forceInSteering", &ModuleParamInfoPython::m_forceInSteering,
35 "If True this parameter has to be set for the module to work")
36 .def_readonly(
"setInSteering", &ModuleParamInfoPython::m_setInSteering,
37 "If True this parameter has been set to a specific value")