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

yes_no_unknown.hpp « editor - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 61ab40cc07cc06ca953d98e403bbc25a543fadda (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 <string>

/// Used to store and edit 3-state OSM information, for example,
/// "This place has internet", "does not have", or "it's not specified yet".
/// Explicit values are given for easier reuse in Java code.
namespace osm
{
enum YesNoUnknown
{
  Unknown = 0,
  Yes = 1,
  No = 2
};

inline std::string DebugPrint(YesNoUnknown value)
{
  switch (value)
  {
  case Unknown: return "Unknown";
  case Yes: return "Yes";
  case No: return "No";
  }
}
}  // namespace osm