| 190 | } |
| 191 | |
| 192 | void dataFromJson(json_t* rootJ) override { |
| 193 | if (json_t* bdJ = json_object_get(rootJ, "barDivision")) { |
| 194 | int value = json_integer_value(bdJ); |
| 195 | if (value == Bars1 || value == Bars4 || value == Bars8) |
| 196 | barDivision = static_cast<BarDivisions>(value); |
| 197 | } |
| 198 | } |
| 199 | }; |
| 200 | |
| 201 | // -------------------------------------------------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected