MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GetValue

Function GetValue

tensorflow/core/platform/cloud/gcs_file_system.cc:231–239  ·  view source on GitHub ↗

Reads a JSON value with the given name from a parent JSON value.

Source from the content-addressed store, hash-verified

229
230/// Reads a JSON value with the given name from a parent JSON value.
231Status GetValue(const Json::Value& parent, const char* name,
232 Json::Value* result) {
233 *result = parent.get(name, Json::Value::null);
234 if (result->isNull()) {
235 return errors::Internal("The field '", name,
236 "' was expected in the JSON response.");
237 }
238 return Status::OK();
239}
240
241/// Reads a string JSON value with the given name from a parent JSON value.
242Status GetStringValue(const Json::Value& parent, const char* name,

Callers 3

GetStringValueFunction · 0.70
GetInt64ValueFunction · 0.70
GetBoolValueFunction · 0.70

Calls 2

InternalFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected