Switchboard SDK
|
StringStoredParameter class. More...
#include <StringStoredParameter.hpp>
Public Member Functions | |
SB_WASM | StringStoredParameter (const std::string &id, const std::string &name, const std::string &description, const std::string defaultValue) |
StringStoredParameter constructor with a default value. | |
SB_WASM std::string | getValue () const override |
Gets the current value of the parameter. | |
SB_WASM void | setValue (const std::string newValue) override |
Sets a new value for the parameter. | |
![]() | |
StringParameter (const std::string &id, const std::string &name, const std::string &description) | |
StringParameter constructor. | |
virtual | ~StringParameter ()=default |
StringParameter destructor. | |
void | setValue (std::any newValue) override |
std::any | getAnyValue () override |
StringStoredParameter class.
switchboard::StringStoredParameter::StringStoredParameter | ( | const std::string & | id, |
const std::string & | name, | ||
const std::string & | description, | ||
const std::string | defaultValue ) |
StringStoredParameter constructor with a default value.
id | The unique identifier of the parameter. |
name | The name of the parameter. |
description | The description of the parameter. |
defaultValue | Default string value. |
|
overridevirtual |
Gets the current value of the parameter.
Implements switchboard::StringParameter.
|
overridevirtual |
Sets a new value for the parameter.
newValue | The new value for the parameter. |
Implements switchboard::StringParameter.