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

Method getDevice

src/AppConfig.cpp:335–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333}
334
335DeviceConfig *AppConfig::getDevice(const std::string& deviceId) {
336 if (deviceConfig.find(deviceId) == deviceConfig.end()) {
337 deviceConfig[deviceId] = new DeviceConfig();
338 }
339 DeviceConfig *conf = deviceConfig[deviceId];
340 conf->setDeviceId(deviceId);
341 return conf;
342}
343
344std::string AppConfig::getConfigDir() {
345 std::string dataDir = wxStandardPaths::Get().GetUserDataDir().ToStdString();

Callers

nothing calls this directly

Calls 2

findMethod · 0.80
setDeviceIdMethod · 0.80

Tested by

no test coverage detected