| 1533 | } |
| 1534 | |
| 1535 | void ArrayGXCoordinates::ProcessJSONHelper(const rapidjson::Value& json, |
| 1536 | DataSourcesType& sources, |
| 1537 | const std::string& varName, |
| 1538 | std::unique_ptr<ArrayBasic>& array) |
| 1539 | { |
| 1540 | if (!json.HasMember(varName.c_str()) || !json[varName.c_str()].IsObject()) |
| 1541 | { |
| 1542 | throw std::runtime_error(this->ObjectName + " must provide a " + varName + "object."); |
| 1543 | } |
| 1544 | array.reset(new ArrayBasic()); |
| 1545 | const auto& arrayJSON = json[varName.c_str()]; |
| 1546 | array->ProcessJSON(arrayJSON, sources); |
| 1547 | } |
| 1548 | |
| 1549 | |
| 1550 | /// Overridden to handle ArrayXGCCoordinates specific items. |
no test coverage detected