 |
Belle II Software
release-05-02-19
|
12 #include <framework/core/ModuleParamBase.h>
36 class ModuleParam :
public ModuleParamBase {
58 explicit ModuleParam(T& paramVariable,
const std::string& description =
"",
bool force =
false);
virtual void setValueFromParam(const ModuleParamBase ¶m) final
Set value from other ModuleParam of same type.
void resetValue()
Resets the parameter value by assigning the default value to the parameter value.
ModuleParam(T ¶mVariable, const std::string &description="", bool force=false)
Constructor.
void setDefaultValue(const T &defaultValue)
Sets the default value of a parameter.
T & getValue()
Returns the value of the parameter.
static std::string TypeInfo()
Static function to generate a string description for the parameter type.
T & m_paramVariable
Reference to the member variable in the module which stores the parameter value.
virtual void setValueFromPythonObject(const boost::python::object &pyObject) final
Implements a method for setting boost::python objects.
T & getDefaultValue()
Returns the default value of the parameter.
virtual ~ModuleParam()
Destructor.
Abstract base class for different kinds of events.
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 setValue(const T &value)
Sets the value of a parameter.
T m_defaultValue
The default value of the parameter.