35#include <unordered_map>
56 template <typename ConfigType>
58 m_Parameters[parameterId] = value;
61 std::optional<REVLibConfig_t>
GetParameter(uint8_t parameterId);
73 std::unordered_map<uint8_t, REVLibConfig_t> m_Parameters;
Definition: BaseConfig.h:40
std::variant< int32_t, uint32_t, float, bool > REVLibConfig_t
Definition: BaseConfig.h:54
void RemoveParameter(uint8_t parameterId)
Definition: BaseConfig.cpp:100
BaseConfig & operator=(const BaseConfig &)=delete
virtual ~BaseConfig()=default
virtual std::string Flatten()
Definition: BaseConfig.cpp:53
BaseConfig(const BaseConfig &)=delete
std::optional< REVLibConfig_t > GetParameter(uint8_t parameterId)
Definition: BaseConfig.cpp:85
void Apply(BaseConfig &config)
Definition: BaseConfig.cpp:108
BaseConfig(BaseConfig &&) noexcept=delete
void PutParameter(uint8_t parameterId, ConfigType value)
Definition: BaseConfig.h:57
Definition: SparkLowLevel.cpp:40