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

Method create_read_only_string

OpenHD/ohd_common/src/openhd_settings_imp.cpp:82–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82openhd::Setting openhd::create_read_only_string(const std::string& id,
83 std::string value) {
84 if (value.length() > 15) {
85 value.resize(15);
86 }
87 auto cb = [](const std::string&, const std::string&) { return false; };
88 return Setting{id, openhd::StringSetting{value, cb}};
89}
90
91openhd::Setting openhd::create_read_only_int(const std::string& id, int value) {
92 auto cb = [](const std::string&, int) { return false; };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected