MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / deserialize

Method deserialize

Components/PanoramicDialog.cpp:73–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71#define LOAD(field) this->field = conf.get(STRINGFY(field), this->field)
72
73void
74PanoramicDialogConfig::deserialize(Suscan::Object const &conf)
75{
76 LOAD(fullRange);
77 LOAD(rangeMin);
78 LOAD(rangeMax);
79 LOAD(panRangeMin);
80 LOAD(panRangeMax);
81 LOAD(lnbFreq);
82 LOAD(device);
83 LOAD(sampRate);
84 LOAD(strategy);
85 LOAD(partitioning);
86 LOAD(palette);
87
88 for (unsigned int i = 0; i < conf.getFieldCount(); ++i)
89 if (conf.getFieldByIndex(i).name().substr(0, 5) == "gain.") {
90 this->gains[conf.getFieldByIndex(i).name()] =
91 conf.get(
92 conf.getFieldByIndex(i).name(),
93 static_cast<SUFLOAT>(0));
94 }
95}
96
97Suscan::Object &&
98PanoramicDialogConfig::serialize(void)

Callers

nothing calls this directly

Calls 4

getFieldCountMethod · 0.80
getFieldByIndexMethod · 0.80
nameMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected