| 314 | } |
| 315 | |
| 316 | std::string JSONTimelineDecoder::GetLayerJSONString(JSONTimelineDecoder::JSONEntity& entity, int& counter, |
| 317 | std::string& jsonEntityString) |
| 318 | { |
| 319 | jsonEntityString.append("\t\t"); |
| 320 | jsonEntityString.append(entity.GetName()); |
| 321 | jsonEntityString.append("_"); |
| 322 | jsonEntityString.append(std::to_string(counter)); |
| 323 | jsonEntityString.append(": {\n"); |
| 324 | jsonEntityString.append("\t\t\t"); |
| 325 | jsonEntityString.append("type: Measurement,\n"); |
| 326 | for (uint64_t child_entity_id : entity.childEntities) |
| 327 | { |
| 328 | JSONEntity& childEntity = m_Model.jsonEntities.at(child_entity_id); |
| 329 | jsonEntityString.append(GetJSONEntityString(childEntity, ++counter)); |
| 330 | } |
| 331 | return jsonEntityString; |
| 332 | } |
| 333 | |
| 334 | void JSONTimelineDecoder::JSONEntity::AddConnection(JSONEntity& headEntity, JSONEntity& connectedEntity) |
| 335 | { |