10#include <framework/core/ModuleParamBase.h>
56 explicit ModuleParam(T& paramVariable,
const std::string& description =
"",
bool force =
false);
Base class for module parameter.
A single parameter of the module.
T & m_paramVariable
Reference to the member variable in the module which stores the parameter value.
T m_defaultValue
The default value of the parameter.
virtual void setValueFromPythonObject(const boost::python::object &pyObject) final
Implements a method for setting boost::python objects.
virtual void setValueToPythonObject(boost::python::object &pyObject, bool defaultValues=false) const final
Returns a python object containing the value or the default value of the given parameter.
void resetValue()
Resets the parameter value by assigning the default value to the parameter value.
T & getDefaultValue()
Returns the default value of the parameter.
static std::string TypeInfo()
Static function to generate a string description for the parameter type.
virtual ~ModuleParam()
Destructor.
T & getValue()
Returns the value of the parameter.
void setDefaultValue(const T &defaultValue)
Sets the default value of a parameter.
void setValue(const T &value)
Sets the value of a parameter.
virtual void setValueFromParam(const ModuleParamBase ¶m) final
Set value from other ModuleParam of same type.
Abstract base class for different kinds of events.