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

Method JsonValue

src/Point.cpp:70–84  ·  view source on GitHub ↗

Generate Json::Value for this object

Source from the content-addressed store, hash-verified

68
69// Generate Json::Value for this object
70Json::Value Point::JsonValue() const {
71
72 // Create root json object
73 Json::Value root;
74 root["co"] = co.JsonValue();
75 if (interpolation == BEZIER) {
76 root["handle_left"] = handle_left.JsonValue();
77 root["handle_right"] = handle_right.JsonValue();
78 root["handle_type"] = handle_type;
79 }
80 root["interpolation"] = interpolation;
81
82 // return JsonValue
83 return root;
84}
85
86// Load JSON string into this object
87void Point::SetJson(const std::string value) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected