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

Method SetJsonValue

src/CacheMemory.cpp:317–327  ·  view source on GitHub ↗

Load Json::Value into this object

Source from the content-addressed store, hash-verified

315
316// Load Json::Value into this object
317void CacheMemory::SetJsonValue(const Json::Value root) {
318
319 // Close timeline before we do anything (this also removes all open and closing clips)
320 Clear();
321
322 // Set parent data
323 CacheBase::SetJsonValue(root);
324
325 if (!root["type"].isNull())
326 cache_type = root["type"].asString();
327}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected