10#include <switchboard_core/SwitchboardCore.hpp>
15namespace switchboard {
22 enum class Type { Float, Bool, Int, UInt, String };
32 Parameter(
const Type type,
const std::string&
id,
const std::string& name,
const std::string& description);
51 const std::string&
getID()
const;
85 std::string description;
Parameter(const Type type, const std::string &id, const std::string &name, const std::string &description)
Construct a new Parameter object.
virtual std::any getAnyValue()=0
Gets the value of the parameter.
virtual void setValue(std::any newValue)=0
Sets the value of the parameter.
const std::string & getName() const
Gets the name of the parameter.
Type getType() const
Gets the type of the parameter.
const std::string & getDescription() const
Gets the description of the parameter.
const std::string & getID() const
Gets the unique identifier of the parameter.
virtual ~Parameter()=default
Parameter destructor.