blob: a171b26be8c5ee30553d854c0e86aef110f58961 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#pragma once
#include "storage/index.hpp"
#include "storage/country_info_getter.hpp"
#include "storage/country_name_getter.hpp"
#include "coding/file_container.hpp"
#include "geometry/point2d.hpp"
#include <cstdint>
#include <memory>
namespace lightweight
{
// Protected inheritance for test purposes only.
class CountryInfoReader : protected storage::CountryInfoGetterBase
{
public:
struct Info
{
storage::TCountryId m_id;
std::string m_name;
};
CountryInfoReader();
Info GetMwmInfo(m2::PointD const & pt) const;
protected:
bool IsBelongToRegionImpl(size_t id, m2::PointD const & pt) const override;
private:
std::unique_ptr<FilesContainerR> m_reader;
storage::CountryNameGetter m_nameGetter;
};
} // namespace lightweight
|