forked from organicmaps/organicmaps
Add DebugPrint for feature::TypesHolder.
This commit is contained in:
parent
2c75acba76
commit
b07616b315
2 changed files with 17 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -88,7 +88,14 @@ namespace feature
|
|||
return false;
|
||||
}
|
||||
//@}
|
||||
|
||||
string DebugPrint() const;
|
||||
};
|
||||
|
||||
inline string DebugPrint(TypesHolder const & t)
|
||||
{
|
||||
return t.DebugPrint();
|
||||
}
|
||||
}
|
||||
|
||||
/// Feature description struct.
|
||||
|
|
Loading…
Add table
Reference in a new issue