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

Method GetLocalFile

libs/storage/storage.cpp:1208–1218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1206}
1207
1208LocalFilePtr Storage::GetLocalFile(CountryId const & countryId, int64_t version) const
1209{
1210 auto const it = m_localFiles.find(countryId);
1211 if (it == m_localFiles.end() || it->second.empty())
1212 return LocalFilePtr();
1213
1214 for (auto const & file : it->second)
1215 if (file->GetVersion() == version)
1216 return file;
1217 return LocalFilePtr();
1218}
1219
1220void Storage::RegisterCountryFiles(LocalFilePtr localFile)
1221{

Callers 15

UNIT_CLASS_TESTFunction · 0.80
UNIT_CLASS_TESTFunction · 0.80
IsDeregisteredMethod · 0.80
SetStatusMethod · 0.80
CreateValueMethod · 0.80
CreateValueMethod · 0.80
UNIT_CLASS_TESTFunction · 0.80
UNIT_CLASS_TESTFunction · 0.80
TrafficInfoMethod · 0.80
CreateValueMethod · 0.80
OnMapDeregisteredTestMethod · 0.80
SaveTransactionTestMethod · 0.80

Calls 4

findMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45
GetVersionMethod · 0.45

Tested by 9

UNIT_CLASS_TESTFunction · 0.64
UNIT_CLASS_TESTFunction · 0.64
CreateValueMethod · 0.64
UNIT_CLASS_TESTFunction · 0.64
UNIT_CLASS_TESTFunction · 0.64
CreateValueMethod · 0.64
OnMapDeregisteredTestMethod · 0.64
SaveTransactionTestMethod · 0.64
RemoveMwmMethod · 0.64