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

types.cpp « geocoder - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cd61053f04ace88c2dddddf6fb9fb01d86fb6eb3 (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
#include "geocoder/types.hpp"

#include "base/assert.hpp"

using namespace std;

namespace geocoder
{
string ToString(Type type)
{
  switch (type)
  {
  case Type::Country: return "country";
  case Type::Region: return "region";
  case Type::Subregion: return "subregion";
  case Type::Locality: return "locality";
  case Type::Sublocality: return "sublocality";
  case Type::Suburb: return "suburb";
  case Type::Building: return "building";
  case Type::Count: return "count";
  }
  CHECK_SWITCH();
}

string DebugPrint(Type type)
{
  return ToString(type);
}
}  // namespace geocoder