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

Method Insert

libs/tracking/archival_reporter.cpp:66–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void ArchivalReporter::Insert(routing::RouterType const & trackType, location::GpsInfo const & info,
67 traffic::SpeedGroup const & speedGroup)
68{
69 if (info.m_horizontalAccuracy > kRequiredHorizontalAccuracyM)
70 return;
71
72 switch (trackType)
73 {
74 case routing::RouterType::Vehicle:
75 {
76 if (!m_archiveCar.Add(info, speedGroup))
77 return;
78 break;
79 }
80 case routing::RouterType::Bicycle:
81 {
82 if (!m_archiveBicycle.Add(info))
83 return;
84 break;
85 }
86 case routing::RouterType::Pedestrian:
87 {
88 if (!m_archivePedestrian.Add(info))
89 return;
90 break;
91 }
92 default: UNREACHABLE();
93 }
94
95 DumpToDisk();
96}
97
98void ArchivalReporter::DumpToDisk(bool dumpAnyway)
99{

Callers

nothing calls this directly

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected