| 222 | } |
| 223 | |
| 224 | std::string JSONTimelineDecoder::GetJSONString(JSONTimelineDecoder::JSONEntity& rootEntity) |
| 225 | { |
| 226 | int counter = 0; |
| 227 | std::string json; |
| 228 | json.append("{\n"); |
| 229 | if(rootEntity.GetType() != "") |
| 230 | { |
| 231 | json.append("\tArmNN"); |
| 232 | json.append(": {\n"); |
| 233 | |
| 234 | for (uint64_t childEntityId : rootEntity.childEntities) |
| 235 | { |
| 236 | JSONEntity& childEntity = this->m_Model.jsonEntities.at(childEntityId); |
| 237 | json.append(GetJSONEntityString(childEntity, counter)); |
| 238 | } |
| 239 | } |
| 240 | json.append("}\n"); |
| 241 | return json; |
| 242 | } |
| 243 | |
| 244 | std::string JSONTimelineDecoder::GetJSONEntityString(JSONTimelineDecoder::JSONEntity& entity, int& counter) |
| 245 | { |
no test coverage detected