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

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Magidovich <mgsergio@mapswithme.com>2016-01-05 14:10:08 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:04:20 +0300
commitef1e40d052042e91f5d5ed836cb3f1d656caee5d (patch)
tree87f1f5b5095ca2bfd7d5929ad3c5fbd48432aa4b /indexer/feature_decl.cpp
parentea27bce049e73817b70e6df8dc1e131a0350efe2 (diff)
Implement serialsization for features with type other than GEOM_POINT.
Diffstat (limited to 'indexer/feature_decl.cpp')
-rw-r--r--indexer/feature_decl.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/indexer/feature_decl.cpp b/indexer/feature_decl.cpp
index c697f6948c..d0475aa429 100644
--- a/indexer/feature_decl.cpp
+++ b/indexer/feature_decl.cpp
@@ -2,6 +2,19 @@
#include "std/sstream.hpp"
+namespace feature
+{
+string DebugPrint(feature::EGeomType type)
+{
+ switch (type)
+ {
+ case feature::GEOM_UNDEFINED: return "GEOM_UNDEFINED";
+ case feature::GEOM_POINT: return "GEOM_POINT";
+ case feature::GEOM_LINE: return "GEOM_LINE";
+ case feature::GEOM_AREA: return "GEOM_AREA";
+ }
+}
+} // namespace feature
string DebugPrint(FeatureID const & id)
{