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

Method JsonValue

src/ClipBase.cpp:64–77  ·  view source on GitHub ↗

Generate Json::Value for this object

Source from the content-addressed store, hash-verified

62
63// Generate Json::Value for this object
64Json::Value ClipBase::JsonValue() const {
65
66 // Create root json object
67 Json::Value root;
68 root["id"] = Id();
69 root["position"] = Position();
70 root["layer"] = Layer();
71 root["start"] = Start();
72 root["end"] = End();
73 root["duration"] = Duration();
74
75 // return JsonValue
76 return root;
77}
78
79// Load Json::Value into this object
80void ClipBase::SetJsonValue(const Json::Value root) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected