6#include <unordered_map>
39 std::unordered_map<uint8_t, uint64_t> ret;
41 if (
values.contains(addr)) {
57 if (!
values.contains(addr))
return false;
74 inline std::unordered_map<uint8_t, uint64_t>&
GetMap() {
115 std::string s =
"CanandSettings {\n";
117 s.append(fmt::format(
" 0x{:x}: {:x},\n", it.first, it.second));
127 std::unordered_map<uint8_t, uint64_t>
values;
Definition: CanandSettings.h:20
CanandSettings(CanandSettings &stg)
Definition: CanandSettings.h:28
~CanandSettings()=default
bool IsEphemeral() const
Definition: CanandSettings.h:94
std::unordered_map< uint8_t, uint64_t > FilteredMap()
Definition: CanandSettings.h:38
virtual const std::vector< uint8_t > & SettingAddresses() const
Definition: CanandSettings.h:66
void SetEphemeral(bool value)
Definition: CanandSettings.h:106
std::unordered_map< uint8_t, uint64_t > values
Definition: CanandSettings.h:127
bool ephemeral
Definition: CanandSettings.h:132
std::string ToString()
Definition: CanandSettings.h:114
bool IsEmpty() const
Definition: CanandSettings.h:84
std::unordered_map< uint8_t, uint64_t > & GetMap()
Definition: CanandSettings.h:74
bool AllSettingsReceived() const
Definition: CanandSettings.h:55
const std::vector< uint8_t > VDEP_SETTINGS
Definition: CanandDevice.h:192
Definition: CanandMessage.h:10