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

Method ProcessJSON

ThirdParty/fides/vtkfides/fides/Array.cxx:297–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297void ArrayPlaceholder::ProcessJSON(const rapidjson::Value& json, DataSourcesType&)
298{
299 if (!json.HasMember("array_type") || !json["array_type"].IsString())
300 {
301 throw std::runtime_error(this->ObjectName + " must provide a valid array_type.");
302 }
303 this->ArrayType = json["array_type"].GetString();
304
305 if (!json.HasMember("data_source") || !json["data_source"].IsString())
306 {
307 throw std::runtime_error(this->ObjectName + " must provide a valid data_source.");
308 }
309 this->DataSourceName = json["data_source"].GetString();
310}
311
312std::vector<viskores::cont::UnknownArrayHandle> ArrayPlaceholder::Read(
313 const std::unordered_map<std::string, std::string>&,

Callers 6

CreatePlaceholderMethod · 0.45
ProcessJSONHelperMethod · 0.45
ProcessCellSetMethod · 0.45
ProcessFieldMethod · 0.45
ProcessNumberOfPlanesMethod · 0.45

Calls 7

ProcessJSONHelperMethod · 0.95
IsBoolMethod · 0.80
IsIntMethod · 0.80
IsStringMethod · 0.45
GetStringMethod · 0.45
resetMethod · 0.45
GetIntMethod · 0.45

Tested by

no test coverage detected