Load Json::Value into this object
| 139 | |
| 140 | // Load Json::Value into this object |
| 141 | void Bars::SetJsonValue(const Json::Value root) { |
| 142 | |
| 143 | // Set parent data |
| 144 | EffectBase::SetJsonValue(root); |
| 145 | |
| 146 | // Set data from Json (if key is found) |
| 147 | if (!root["color"].isNull()) |
| 148 | color.SetJsonValue(root["color"]); |
| 149 | if (!root["left"].isNull()) |
| 150 | left.SetJsonValue(root["left"]); |
| 151 | if (!root["top"].isNull()) |
| 152 | top.SetJsonValue(root["top"]); |
| 153 | if (!root["right"].isNull()) |
| 154 | right.SetJsonValue(root["right"]); |
| 155 | if (!root["bottom"].isNull()) |
| 156 | bottom.SetJsonValue(root["bottom"]); |
| 157 | } |
| 158 | |
| 159 | // Get all properties for a specific frame |
| 160 | std::string Bars::PropertiesJSON(int64_t requested_frame) const { |
nothing calls this directly
no outgoing calls
no test coverage detected