Generate Json::Value for this object
| 84 | |
| 85 | // Generate Json::Value for this object |
| 86 | Json::Value Color::JsonValue() const { |
| 87 | |
| 88 | // Create root json object |
| 89 | Json::Value root; |
| 90 | root["red"] = red.JsonValue(); |
| 91 | root["green"] = green.JsonValue(); |
| 92 | root["blue"] = blue.JsonValue(); |
| 93 | root["alpha"] = alpha.JsonValue(); |
| 94 | |
| 95 | // return JsonValue |
| 96 | return root; |
| 97 | } |
| 98 | |
| 99 | // Load JSON string into this object |
| 100 | void Color::SetJson(const std::string value) { |
nothing calls this directly
no outgoing calls
no test coverage detected