| 154 | } |
| 155 | |
| 156 | void TimelineModel::HandleConnection(const arm::pipe::ITimelineDecoder::Relationship& relationship) |
| 157 | { |
| 158 | Entity* outputLayer = FindEntity(relationship.m_HeadGuid); |
| 159 | if (outputLayer == nullptr) |
| 160 | { |
| 161 | std::stringstream ss; |
| 162 | ss << "could not find output entity [" << relationship.m_HeadGuid << "]"; |
| 163 | ss << " of connection [" << relationship.m_Guid << "]"; |
| 164 | m_Errors.push_back(arm::pipe::ProfilingException(ss.str())); |
| 165 | return; |
| 166 | } |
| 167 | Entity* inputLayer = FindEntity(relationship.m_TailGuid); |
| 168 | if (inputLayer == nullptr) |
| 169 | { |
| 170 | std::stringstream ss; |
| 171 | ss << "could not find input entity [" << relationship.m_TailGuid << "]"; |
| 172 | ss << " of connection [" << relationship.m_Guid << "]"; |
| 173 | m_Errors.push_back(arm::pipe::ProfilingException(ss.str())); |
| 174 | return; |
| 175 | } |
| 176 | Connection connection(relationship.m_Guid, outputLayer, inputLayer); |
| 177 | outputLayer->AddConnection(connection); |
| 178 | } |
| 179 | |
| 180 | void TimelineModel::HandleChild(const arm::pipe::ITimelineDecoder::Relationship& relationship) |
| 181 | { |
nothing calls this directly
no test coverage detected