Load Json::Value into this object
| 466 | |
| 467 | // Load Json::Value into this object |
| 468 | void CacheDisk::SetJsonValue(const Json::Value root) { |
| 469 | |
| 470 | // Close timeline before we do anything (this also removes all open and closing clips) |
| 471 | Clear(); |
| 472 | |
| 473 | // Set parent data |
| 474 | CacheBase::SetJsonValue(root); |
| 475 | |
| 476 | if (!root["type"].isNull()) |
| 477 | cache_type = root["type"].asString(); |
| 478 | if (!root["path"].isNull()) |
| 479 | // Update duration of timeline |
| 480 | InitPath(root["path"].asString()); |
| 481 | } |
nothing calls this directly
no outgoing calls
no test coverage detected