IntStoredParameter class. A int parameter class that contains an int variable.
More...
#include <IntStoredParameter.hpp>
|
WASM | IntStoredParameter (const std::string name, const int defaultValue, const int minimumValue, const int maximumValue) |
| IntStoredParameter constructor with a default value.
|
|
WASM int | getValue () const override |
| Gets the current value of the parameter.
|
|
WASM void | setValue (const int newValue) override |
| Sets a new value for the parameter.
|
|
WASM int | getMinimumValue () const override |
| Gets the minimum value for the parameter.
|
|
WASM int | getMaximumValue () const override |
| Gets the maximum value for the parameter.
|
|
| IntParameter (const std::string name) |
| IntParameter constructor.
|
|
virtual | ~IntParameter ()=default |
| IntParameter 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 |
|
IntStoredParameter class. A int parameter class that contains an int variable.
◆ IntStoredParameter()
switchboard::IntStoredParameter::IntStoredParameter |
( |
const std::string | name, |
|
|
const int | defaultValue, |
|
|
const int | minimumValue, |
|
|
const int | maximumValue ) |
IntStoredParameter constructor with a default value.
- Parameters
-
name | The name of the parameter. |
defaultValue | Default int value. |
minimumValue | Minimum value for the parameter. |
maximumValue | Maximum value for the parameter. |
◆ getMaximumValue()
int switchboard::IntStoredParameter::getMaximumValue |
( |
| ) |
const |
|
overridevirtual |
◆ getMinimumValue()
int switchboard::IntStoredParameter::getMinimumValue |
( |
| ) |
const |
|
overridevirtual |
◆ getValue()
int switchboard::IntStoredParameter::getValue |
( |
| ) |
const |
|
overridevirtual |
◆ setValue()
void switchboard::IntStoredParameter::setValue |
( |
const int | newValue | ) |
|
|
overridevirtual |
Sets a new value for the parameter.
- Parameters
-
newValue | The new value for the parameter. |
Implements switchboard::IntParameter.