diff options
author | Alex Zolotarev <alex@maps.me> | 2016-01-26 13:22:04 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:14:52 +0300 |
commit | f60b3fe1aed71139ecb086c44457dad1cc26c69f (patch) | |
tree | 76e2c4b062dc14dec8ebb38f0080cb9de3e1887a /indexer | |
parent | deff0f5c25f0c6a2a01700e78f7e530242ebfbb0 (diff) |
DebugPrint for feature::EGeomType.
Diffstat (limited to 'indexer')
-rw-r--r-- | indexer/feature_decl.cpp | 12 | ||||
-rw-r--r-- | indexer/feature_decl.hpp | 4 |
2 files changed, 15 insertions, 1 deletions
diff --git a/indexer/feature_decl.cpp b/indexer/feature_decl.cpp index 6c1e60a238..fec8472d45 100644 --- a/indexer/feature_decl.cpp +++ b/indexer/feature_decl.cpp @@ -8,3 +8,15 @@ string DebugPrint(FeatureID const & id) ss << "{ " << DebugPrint(id.m_mwmId) << ", " << id.m_index << " }"; return ss.str(); } + +string DebugPrint(feature::EGeomType type) +{ + using feature::EGeomType; + switch (type) + { + case EGeomType::GEOM_UNDEFINED: return "GEOM_UNDEFINED"; + case EGeomType::GEOM_POINT: return "GEOM_POINT"; + case EGeomType::GEOM_LINE: return "GEOM_LINE"; + case EGeomType::GEOM_AREA: return "GEOM_AREA"; + } +} diff --git a/indexer/feature_decl.hpp b/indexer/feature_decl.hpp index 6c89648b5f..b28cfd2baa 100644 --- a/indexer/feature_decl.hpp +++ b/indexer/feature_decl.hpp @@ -15,7 +15,9 @@ enum EGeomType GEOM_LINE = 1, GEOM_AREA = 2 }; -} +} // namespace feature + +string DebugPrint(feature::EGeomType type); struct FeatureID { |