static
| 80 | |
| 81 | // static |
| 82 | void CameraCollector::CameraInfo::Write(FileWriter & writer, CameraInfo const & camera) |
| 83 | { |
| 84 | uint32_t const lat = DoubleToUint32(camera.m_lat, ms::LatLon::kMinLat, ms::LatLon::kMaxLat, kPointCoordBits); |
| 85 | WriteToSink(writer, lat); |
| 86 | |
| 87 | uint32_t const lon = DoubleToUint32(camera.m_lon, ms::LatLon::kMinLon, ms::LatLon::kMaxLon, kPointCoordBits); |
| 88 | WriteToSink(writer, lon); |
| 89 | |
| 90 | WriteToSink(writer, camera.m_speedKmPH); |
| 91 | |
| 92 | auto const size = static_cast<uint32_t>(camera.m_ways.size()); |
| 93 | WriteToSink(writer, size); |
| 94 | for (auto wayId : camera.m_ways) |
| 95 | WriteToSink(writer, wayId); |
| 96 | } |
| 97 | |
| 98 | void CameraCollector::FillCameraInWays() |
| 99 | { |