Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
26
libs/editor/yes_no_unknown.hpp
Normal file
26
libs/editor/yes_no_unknown.hpp
Normal file
|
|
@ -0,0 +1,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
|
||||
Loading…
Add table
Add a link
Reference in a new issue