///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
| 1331 | |
| 1332 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 1333 | FSecure::C3::Core::Profiler::Device::Device(std::weak_ptr<Profiler> owner, Id id, HashT typeHash) |
| 1334 | : ProfileElement(owner) |
| 1335 | , m_Id(id) |
| 1336 | , m_TypeHash(typeHash) |
| 1337 | { |
| 1338 | if (auto ptrCh = InterfaceFactory::Instance().GetInterfaceData<AbstractChannel>(m_TypeHash); ptrCh) |
| 1339 | m_Jitter = ptrCh->m_StartupJitter; |
| 1340 | else if (auto ptrP = InterfaceFactory::Instance().GetInterfaceData<AbstractPeripheral>(m_TypeHash); ptrP) |
| 1341 | m_Jitter = ptrP->m_StartupJitter; |
| 1342 | else |
| 1343 | throw std::runtime_error("Type hash does is not device: " + std::to_string(m_TypeHash)); |
| 1344 | } |
| 1345 | |
| 1346 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 1347 | FSecure::C3::Core::Profiler::Route::Route(std::weak_ptr<Profiler> owner, RouteId id, Device::Id outgoingDeviceId, bool isNeighbour) |
nothing calls this directly
no test coverage detected