| 71 | #define LOAD(field) this->field = conf.get(STRINGFY(field), this->field) |
| 72 | |
| 73 | void |
| 74 | PanoramicDialogConfig::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 | |
| 97 | Suscan::Object && |
| 98 | PanoramicDialogConfig::serialize(void) |
nothing calls this directly
no test coverage detected