Switchboard SDK
Loading...
Searching...
No Matches
switchboard::IntStoredParameter Class Reference

IntStoredParameter class. A int parameter class that contains an int variable. More...

#include <IntStoredParameter.hpp>

Inheritance diagram for switchboard::IntStoredParameter:
switchboard::IntParameter

Public Member Functions

SB_WASM IntStoredParameter (const std::string &id, const std::string &name, const std::string &description, const int defaultValue, const int minimumValue, const int maximumValue)
 IntStoredParameter constructor with a default value.
 
SB_WASM int getValue () const override
 Gets the current value of the parameter.
 
SB_WASM void setValue (const int newValue) override
 Sets a new value for the parameter.
 
SB_WASM int getMinimumValue () const override
 Gets the minimum value for the parameter.
 
SB_WASM int getMaximumValue () const override
 Gets the maximum value for the parameter.
 
- Public Member Functions inherited from switchboard::IntParameter
 IntParameter (const std::string &id, const std::string &name, const std::string &description)
 IntParameter constructor.
 
virtual ~IntParameter ()=default
 IntParameter destructor.
 
void setValue (std::any newValue) override
 
std::any getAnyValue () override
 

Detailed Description

IntStoredParameter class. A int parameter class that contains an int variable.

Constructor & Destructor Documentation

◆ IntStoredParameter()

switchboard::IntStoredParameter::IntStoredParameter ( const std::string & id,
const std::string & name,
const std::string & description,
const int defaultValue,
const int minimumValue,
const int maximumValue )

IntStoredParameter constructor with a default value.

Parameters
idThe unique identifier of the parameter.
nameThe name of the parameter.
descriptionThe description of the parameter.
defaultValueDefault int value.
minimumValueMinimum value for the parameter.
maximumValueMaximum value for the parameter.

Member Function Documentation

◆ getMaximumValue()

int switchboard::IntStoredParameter::getMaximumValue ( ) const
overridevirtual

Gets the maximum value for the parameter.

Returns
The maximum value.

Implements switchboard::IntParameter.

◆ getMinimumValue()

int switchboard::IntStoredParameter::getMinimumValue ( ) const
overridevirtual

Gets the minimum value for the parameter.

Returns
The minimum value.

Implements switchboard::IntParameter.

◆ getValue()

int switchboard::IntStoredParameter::getValue ( ) const
overridevirtual

Gets the current value of the parameter.

Returns
The current value.

Implements switchboard::IntParameter.

◆ setValue()

void switchboard::IntStoredParameter::setValue ( const int newValue)
overridevirtual

Sets a new value for the parameter.

Parameters
newValueThe new value for the parameter.

Implements switchboard::IntParameter.