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

Function ReadVersionFromHeader

libs/search/search_quality/helpers.cpp:40–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38namespace
39{
40uint64_t ReadVersionFromHeader(platform::LocalCountryFile const & mwm)
41{
42 vector<string> const kSpecialFiles = {WORLD_FILE_NAME, WORLD_COASTS_FILE_NAME};
43 for (auto const & name : kSpecialFiles)
44 if (mwm.GetCountryName() == name)
45 return mwm.GetVersion();
46
47 return version::MwmVersion::Read(FilesContainerR(mwm.GetPath(MapFileType::Map))).GetVersion();
48}
49} // namespace
50
51void CheckLocale()

Callers 1

InitDataSourceFunction · 0.85

Calls 5

ReadFunction · 0.50
FilesContainerRClass · 0.50
GetCountryNameMethod · 0.45
GetVersionMethod · 0.45
GetPathMethod · 0.45

Tested by

no test coverage detected