diff --git a/indexer/feature_data.cpp b/indexer/feature_data.cpp index 31e5c905ea..57e2a97ca6 100644 --- a/indexer/feature_data.cpp +++ b/indexer/feature_data.cpp @@ -13,6 +13,16 @@ TypesHolder::TypesHolder(FeatureBase const & f) f.ForEachTypeRef(*this); } +string TypesHolder::DebugPrint() const +{ + Classificator const & c = classif(); + + string s; + for (size_t i = 0; i < Size(); ++i) + s += c.GetFullObjectName(m_types[i]) + " "; + return s; +} + void FeatureParamsBase::MakeZero() { layer = 0; diff --git a/indexer/feature_data.hpp b/indexer/feature_data.hpp index 430f396f3e..fe208e6238 100644 --- a/indexer/feature_data.hpp +++ b/indexer/feature_data.hpp @@ -88,7 +88,14 @@ namespace feature return false; } //@} + + string DebugPrint() const; }; + + inline string DebugPrint(TypesHolder const & t) + { + return t.DebugPrint(); + } } /// Feature description struct.