35#include <unordered_map>
56 template <typename ConfigType>
58 m_Parameters[parameterId] = value;
61 std::optional<SparkConfig_t>
GetParameter(uint8_t parameterId);
66 m_Parameters.erase(parameterId);
76 std::unordered_map<uint8_t, SparkConfig_t> m_Parameters;
Definition: BaseConfig.h:40
BaseConfig(BaseConfig &&) noexcept=delete
virtual ~BaseConfig()=default
void PutParameter(uint8_t parameterId, ConfigType value)
Definition: BaseConfig.h:57
void RemoveParameter(uint8_t parameterId)
Definition: BaseConfig.h:65
void RemoveParameter(BaseConfig &fromConfig, uint8_t parameterId)
Definition: BaseConfig.h:69
virtual std::string Flatten()
Definition: BaseConfig.cpp:50
std::variant< int32_t, uint32_t, float, bool > SparkConfig_t
Definition: BaseConfig.h:54
void Apply(BaseConfig &config)
Definition: BaseConfig.cpp:97
BaseConfig & operator=(const BaseConfig &)=delete
std::optional< SparkConfig_t > GetParameter(uint8_t parameterId)
Definition: BaseConfig.cpp:82
BaseConfig(const BaseConfig &)=delete
Definition: SparkLowLevel.cpp:40