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

Function GetCountryReader

libs/platform/local_country_file_utils.cpp:326–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324}
325
326std::unique_ptr<ModelReader> GetCountryReader(LocalCountryFile const & file, MapFileType type)
327{
328 Platform & platform = GetPlatform();
329 if (file.IsInBundle())
330 return platform.GetReader(file.GetFileName(type), GetAdditionalWorldScope());
331 else
332 return platform.GetReader(file.GetPath(type), "f");
333}
334
335// static
336void CountryIndexes::PreparePlaceOnDisk(LocalCountryFile const & localFile)

Callers 2

MwmValueMethod · 0.85
RunTestFunction · 0.85

Calls 5

GetAdditionalWorldScopeFunction · 0.85
IsInBundleMethod · 0.80
GetReaderMethod · 0.45
GetFileNameMethod · 0.45
GetPathMethod · 0.45

Tested by 1

RunTestFunction · 0.68