blob: 19c9ad475be3dceee621f8f7f56fbe62fd04bc6a (
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
|
#pragma once
#include <memory>
#include <string>
#include "storage/country.hpp"
#include "storage/index.hpp"
#include "platform/get_text_by_id.hpp"
namespace search
{
class RegionInfoGetter
{
public:
void LoadCountriesTree();
void SetLocale(std::string const & locale);
std::string GetLocalizedFullName(storage::TCountryId const & id) const;
std::string GetLocalizedCountryName(storage::TCountryId const & id) const;
private:
storage::TCountryTree m_countries;
std::unique_ptr<platform::GetTextById> m_nameGetter;
};
} // namespace search
|