blob: 229aaa54a46ad051fa8ee1fc2261ede434491946 (
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
37
|
#pragma once
#include "geometry/rect2d.hpp"
#include "std/string.hpp"
namespace storage
{
struct CountryDef
{
/// File name without extension (equal to english name - used in search for region).
string m_name;
m2::RectD m_rect;
CountryDef() {}
CountryDef(string const & name, m2::RectD const & r)
: m_name(name), m_rect(r)
{
}
};
struct CountryInfo
{
/// Name (in native language) of country or region.
/// (if empty - equals to file name of country - no additional memory)
string m_name;
/// Flag of country or region.
string m_flag;
bool IsNotEmpty() const { return !m_flag.empty(); }
static void FileName2FullName(string & fName);
static void FullName2GroupAndMap(string const & fName, string & group, string & map);
};
}
|