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

Function ParseMaxspeedAndWriteToStream

generator/maxspeeds_collector.cpp:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24namespace
25{
26bool ParseMaxspeedAndWriteToStream(std::string const & maxspeed, routing::SpeedInUnits & speed, std::ostringstream & ss)
27{
28 if (maxspeed.empty() || !ParseMaxspeedTag(maxspeed, speed))
29 return false;
30
31 ss << UnitsToString(speed.GetUnits()) << "," << strings::to_string(speed.GetSpeed());
32 return true;
33}
34} // namespace
35
36MaxspeedsCollector::MaxspeedsCollector(std::string const & filename) : CollectorInterface(filename)

Callers 1

CollectFeatureMethod · 0.85

Calls 6

ParseMaxspeedTagFunction · 0.85
UnitsToStringFunction · 0.85
to_stringFunction · 0.85
emptyMethod · 0.45
GetUnitsMethod · 0.45
GetSpeedMethod · 0.45

Tested by

no test coverage detected