MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / JsonValue

Method JsonValue

src/ChunkReader.cpp:252–265  ·  view source on GitHub ↗

Generate Json::Value for this object

Source from the content-addressed store, hash-verified

250
251// Generate Json::Value for this object
252Json::Value ChunkReader::JsonValue() const {
253
254 // Create root json object
255 Json::Value root = ReaderBase::JsonValue(); // get parent properties
256 root["type"] = "ChunkReader";
257 root["path"] = path;
258 std::stringstream chunk_size_stream;
259 chunk_size_stream << chunk_size;
260 root["chunk_size"] = chunk_size_stream.str();
261 root["chunk_version"] = version;
262
263 // return JsonValue
264 return root;
265}
266
267// Load JSON string into this object
268void ChunkReader::SetJson(const std::string value) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected