| 89 | { |
| 90 | public: |
| 91 | FeaturesLoaderGuard(DataSource const & dataSource, DataSource::MwmId const & id) |
| 92 | : m_handle(dataSource.GetMwmHandleById(id)) |
| 93 | , m_source(dataSource.CreateFeatureSource(m_handle)) |
| 94 | { |
| 95 | // FeaturesLoaderGuard is always created in-place, so MWM should always be alive. |
| 96 | ASSERT(id.IsAlive(), ()); |
| 97 | } |
| 98 | |
| 99 | MwmSet::MwmId const & GetId() const { return m_handle.GetId(); } |
| 100 | MwmSet::MwmHandle const & GetHandle() const { return m_handle; } |
nothing calls this directly
no test coverage detected