SingleMwmDataSource -----------------------------------------------------------------------------
| 76 | |
| 77 | // SingleMwmDataSource ----------------------------------------------------------------------------- |
| 78 | SingleMwmDataSource::SingleMwmDataSource(std::string const & mwmPath) |
| 79 | { |
| 80 | m_countryFile = platform::LocalCountryFile::MakeTemporary(mwmPath); |
| 81 | m_countryFile.SyncWithDisk(); |
| 82 | CHECK(m_countryFile.OnDisk(MapFileType::Map), |
| 83 | ("No correct mwm corresponding to local country file:", m_countryFile, ". Path:", mwmPath)); |
| 84 | |
| 85 | auto const result = m_dataSource.Register(m_countryFile); |
| 86 | CHECK_EQUAL(result.second, MwmSet::RegResult::Success, ()); |
| 87 | CHECK(result.first.IsAlive(), ()); |
| 88 | m_mwmId = result.first; |
| 89 | } |
| 90 | |
| 91 | FeatureGetter::FeatureGetter(std::string const & countryFullPath) |
| 92 | : m_mwm(countryFullPath) |
nothing calls this directly
no test coverage detected