FloatStoredParameter class. A float parameter class that contains an float variable.
More...
#include <FloatStoredParameter.hpp>
|
WASM | FloatStoredParameter (const std::string name, const float defaultValue, const float minimumValue, const float maximumValue) |
| FloatStoredParameter constructor with a default value.
|
|
WASM float | getValue () const override |
| Gets the current value of the parameter.
|
|
WASM void | setValue (const float newValue) override |
| Sets a new value for the parameter.
|
|
WASM float | getMinimumValue () const override |
| Gets the minimum value for the parameter.
|
|
WASM float | getMaximumValue () const override |
| Gets the maximum value for the parameter.
|
|
| FloatParameter (const std::string name) |
| FloatParameter constructor.
|
|
virtual | ~FloatParameter ()=default |
| FloatParameter destructor.
|
|
| Parameter (const Type type, const std::string name) |
|
virtual | ~Parameter ()=default |
| Parameter destructor.
|
|
const std::string & | getName () const |
| Gets the name of the parameter.
|
|
Type | getType () const |
| Gets the type of the parameter.
|
|
|
enum class | Type { Float
, Bool
, Int
, UInt
} |
|
Type | type |
|
std::string | name |
|
FloatStoredParameter class. A float parameter class that contains an float variable.
◆ FloatStoredParameter()
switchboard::FloatStoredParameter::FloatStoredParameter |
( |
const std::string | name, |
|
|
const float | defaultValue, |
|
|
const float | minimumValue, |
|
|
const float | maximumValue ) |
FloatStoredParameter constructor with a default value.
- Parameters
-
name | The name of the parameter. |
defaultValue | Default float value. |
minimumValue | Minimum value for the parameter. |
maximumValue | Maximum value for the parameter. |
◆ getMaximumValue()
float switchboard::FloatStoredParameter::getMaximumValue |
( |
| ) |
const |
|
overridevirtual |
◆ getMinimumValue()
float switchboard::FloatStoredParameter::getMinimumValue |
( |
| ) |
const |
|
overridevirtual |
◆ getValue()
float switchboard::FloatStoredParameter::getValue |
( |
| ) |
const |
|
overridevirtual |
◆ setValue()
void switchboard::FloatStoredParameter::setValue |
( |
const float | newValue | ) |
|
|
overridevirtual |