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

Method GetVersion

libs/storage/storage.cpp:1593–1602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1591}
1592
1593int64_t Storage::GetVersion(CountryId const & countryId) const
1594{
1595 CHECK_THREAD_CHECKER(m_threadChecker, ());
1596
1597 auto const localMap = GetLatestLocalFile(countryId);
1598 if (localMap == nullptr)
1599 return 0;
1600
1601 return localMap->GetVersion();
1602}
1603
1604void Storage::DownloadNode(CountryId const & countryId, bool isUpdate /* = false */)
1605{

Callers 15

CreateFeatureIdFunction · 0.45
RegisterAllLocalMapsMethod · 0.45
GetLatestLocalFileMethod · 0.45
CountryStatusExMethod · 0.45
GetLocalFileMethod · 0.45
RegisterCountryFilesMethod · 0.45
RegisterLocalFileMethod · 0.45
IsAllowedToEditFileMethod · 0.45
UNIT_TESTFunction · 0.45
TrafficInfoMethod · 0.45
ReceiveTrafficKeysMethod · 0.45
ReceiveTrafficValuesMethod · 0.45

Calls

no outgoing calls

Tested by 2

UNIT_TESTFunction · 0.36
GenerateUploadedFeatureFunction · 0.36