BoolStoredParameter class. A bool parameter class that contains an bool variable.
More...
#include <BoolStoredParameter.hpp>
|
WASM | BoolStoredParameter (const std::string name, const bool defaultValue) |
| BoolStoredParameter constructor with a default value.
|
|
WASM bool | getValue () const override |
| Gets the current value of the parameter.
|
|
WASM void | setValue (const bool newValue) override |
| Sets a new value for the parameter.
|
|
| BoolParameter (const std::string name) |
| BoolParameter constructor.
|
|
virtual | ~BoolParameter ()=default |
| BoolParameter 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 |
|
BoolStoredParameter class. A bool parameter class that contains an bool variable.
◆ BoolStoredParameter()
switchboard::BoolStoredParameter::BoolStoredParameter |
( |
const std::string | name, |
|
|
const bool | defaultValue ) |
BoolStoredParameter constructor with a default value.
- Parameters
-
name | The name of the parameter. |
defaultValue | Default bool value. |
◆ getValue()
bool switchboard::BoolStoredParameter::getValue |
( |
| ) |
const |
|
overridevirtual |
◆ setValue()
void switchboard::BoolStoredParameter::setValue |
( |
const bool | newValue | ) |
|
|
overridevirtual |