| 295 | } |
| 296 | |
| 297 | void 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 | |
| 312 | std::vector<viskores::cont::UnknownArrayHandle> ArrayPlaceholder::Read( |
| 313 | const std::unordered_map<std::string, std::string>&, |
no test coverage detected