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 {