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

Method ProcessJSON

ThirdParty/fides/vtkfides/fides/DataModel.cxx:167–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167void DataModelBase::ProcessJSON(const rapidjson::Value& json, DataSourcesType& sources)
168{
169 if (!json.HasMember("variable"))
170 {
171 throw std::runtime_error(this->ObjectName + " must provide a variable.");
172 }
173
174 std::string varName = json["variable"].GetString();
175 this->VariableName = varName;
176 this->DataSourceName = this->FindDataSource(json, sources);
177
178 if (json.HasMember("static") && json["static"].IsBool())
179 {
180 if (json["static"].GetBool())
181 {
182 this->IsStatic = true;
183 }
184 }
185}
186
187}
188}

Callers

nothing calls this directly

Calls 3

FindDataSourceMethod · 0.95
IsBoolMethod · 0.80
GetStringMethod · 0.45

Tested by

no test coverage detected