Welcome to mirror list, hosted at ThFree Co, Russian Federation.

region_info_getter.hpp « search - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5aae0b470bb624225506ae7b859f8bc594d5f90a (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 "storage/country.hpp"
#include "storage/storage_defines.hpp"

#include "platform/get_text_by_id.hpp"

#include <memory>
#include <string>

namespace search
{
class RegionInfoGetter
{
public:
  void LoadCountriesTree();
  void SetLocale(std::string const & locale);

  std::string GetLocalizedFullName(storage::CountryId const & id) const;
  std::string GetLocalizedCountryName(storage::CountryId const & id) const;

private:
  storage::CountryTree m_countries;
  std::unique_ptr<platform::GetTextById> m_nameGetter;
};
}  // namespace search