MCPcopy Create free account
hub / github.com/comaps/comaps / Write

Method Write

generator/collector_camera.cpp:82–96  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

80
81// static
82void 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
98void CameraCollector::FillCameraInWays()
99{

Callers 15

SaveMethod · 0.45
SerializeForMwmMethod · 0.45
AppendToMwmTmpFunction · 0.45
WriteMiniRoundaboutFunction · 0.45
WriteMetalinesSectionFunction · 0.45
FinishMethod · 0.45
BuildRoadAltitudesFunction · 0.45
ProcessRoundaboutsMethod · 0.45
ProcessBuildingPartsMethod · 0.45

Calls 3

DoubleToUint32Function · 0.85
WriteToSinkFunction · 0.85
sizeMethod · 0.45

Tested by 2

UNIT_TESTFunction · 0.36
UNIT_TESTFunction · 0.36