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

Function ParseOneSpeedValue

generator/maxspeeds_builder.cpp:48–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46
47template <class TokenizerT>
48bool ParseOneSpeedValue(TokenizerT & iter, MaxspeedType & value)
49{
50 if (!iter)
51 return false;
52
53 uint64_t parsedSpeed = 0;
54 if (!strings::to_uint(*iter, parsedSpeed))
55 return false;
56 if (parsedSpeed > routing::kInvalidSpeed)
57 return false;
58 value = static_cast<MaxspeedType>(parsedSpeed);
59 ++iter;
60 return true;
61}
62
63/// \brief Collects all maxspeed tag values of specified mwm based on maxspeeds.csv file.
64class MaxspeedsMwmCollector

Callers 1

ParseMaxspeedsFunction · 0.85

Calls 1

to_uintFunction · 0.85

Tested by

no test coverage detected