Add DebugPrint for feature::TypesHolder.

This commit is contained in:
vng 2012-02-10 02:50:13 +03:00 committed by Alex Zolotarev
parent 2c75acba76
commit b07616b315
2 changed files with 17 additions and 0 deletions

View file

@ -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;

View file

@ -88,7 +88,14 @@ namespace feature
return false;
}
//@}
string DebugPrint() const;
};
inline string DebugPrint(TypesHolder const & t)
{
return t.DebugPrint();
}
}
/// Feature description struct.