MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / validate_provided_ids

Method validate_provided_ids

OpenHD/ohd_common/src/openhd_settings_imp.cpp:96–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96void openhd::validate_provided_ids(const std::vector<Setting>& settings) {
97 std::map<std::string, void*> test;
98 for (const auto& setting : settings) {
99 assert(setting.id.length() <= 16);
100 assert(test.find(setting.id) == test.end());
101 test[setting.id] = nullptr;
102 }
103}
104
105std::function<bool(std::string id, int requested_value)>
106openhd::create_log_only_cb_int() {

Callers

nothing calls this directly

Calls 1

endMethod · 0.80

Tested by

no test coverage detected