MCPcopy Create free account
hub / github.com/cjcliffe/CubicSDR / getSetting

Method getSetting

src/AppConfig.cpp:257–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257std::string DeviceConfig::getSetting(const std::string& key, std::string defaultValue) {
258 if (settings.find(key) == settings.end()) {
259 return defaultValue;
260 }
261 return settings[key];
262}
263
264ConfigSettings DeviceConfig::getSettings() {
265 return settings;

Callers 1

Calls 1

findMethod · 0.80

Tested by

no test coverage detected