MCPcopy Create free account
hub / github.com/Kitware/VTK / ProcessJSONHelper

Method ProcessJSONHelper

ThirdParty/fides/vtkfides/fides/Array.cxx:1535–1547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1533}
1534
1535void 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.

Callers 1

ProcessJSONMethod · 0.95

Calls 3

c_strMethod · 0.45
resetMethod · 0.45
ProcessJSONMethod · 0.45

Tested by

no test coverage detected