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

Method RegisterMap

libs/map/framework.cpp:162–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160} // namespace
161
162pair<MwmSet::MwmId, MwmSet::RegResult> Framework::RegisterMap(LocalCountryFile const & file)
163{
164 auto res = m_featuresFetcher.RegisterMap(file);
165 if (res.second == MwmSet::RegResult::Success)
166 {
167 auto const & id = res.first;
168 ASSERT(id.IsAlive(), ());
169 LOG(LINFO, ("Loaded", file.GetCountryName(), "map, of version", id.GetInfo()->GetVersion()));
170 }
171
172 return res;
173}
174
175void Framework::OnLocationError(TLocationError /*error*/)
176{

Callers 15

mainFunction · 0.45
LoadDataSourcesFunction · 0.45
WithRoadFunction · 0.45
CamerasInfoCollectorMethod · 0.45
BuildAddressTableFunction · 0.45
UNIT_CLASS_TESTFunction · 0.45
TestMaxspeedsSectionFunction · 0.45
UNIT_CLASS_TESTFunction · 0.45
UNIT_TESTFunction · 0.45
TestAltitudesBuildingFunction · 0.45
LoadCityRoadsFunction · 0.45
UNIT_TESTFunction · 0.45

Calls 5

ASSERTFunction · 0.85
IsAliveMethod · 0.45
GetCountryNameMethod · 0.45
GetVersionMethod · 0.45
GetInfoMethod · 0.45

Tested by 15

WithRoadFunction · 0.36
UNIT_CLASS_TESTFunction · 0.36
TestMaxspeedsSectionFunction · 0.36
UNIT_CLASS_TESTFunction · 0.36
UNIT_TESTFunction · 0.36
TestAltitudesBuildingFunction · 0.36
LoadCityRoadsFunction · 0.36
RegisterLocalMapsImplMethod · 0.36
ForEachFeatureMethod · 0.36
BuildMwmMethod · 0.36
BuildMwmMethod · 0.36
OnMapDeregisteredTestMethod · 0.36