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

Method JsonValue

src/Coordinate.cpp:36–50  ·  view source on GitHub ↗

Generate Json::Value for this object

Source from the content-addressed store, hash-verified

34
35// Generate Json::Value for this object
36Json::Value Coordinate::JsonValue() const {
37
38 // Create root json object
39 Json::Value root;
40 root["X"] = X;
41 root["Y"] = Y;
42 //root["increasing"] = increasing;
43 //root["repeated"] = Json::Value(Json::objectValue);
44 //root["repeated"]["num"] = repeated.num;
45 //root["repeated"]["den"] = repeated.den;
46 //root["delta"] = delta;
47
48 // return JsonValue
49 return root;
50}
51
52// Load JSON string into this object
53void Coordinate::SetJson(const std::string value) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected