DebugPrint for XMLFeature.

This commit is contained in:
Alex Zolotarev 2016-01-08 17:19:48 +03:00 committed by Sergey Yershov
parent 26b27734b2
commit 58465c3488
2 changed files with 11 additions and 0 deletions

View file

@ -264,4 +264,12 @@ bool XMLFeature::AttachToParentNode(pugi::xml_node parent) const
{
return !parent.append_copy(GetRootNode()).empty();
}
string DebugPrint(XMLFeature const & feature)
{
ostringstream ost;
feature.Save(ost);
return ost.str();
}
} // namespace editor

View file

@ -116,4 +116,7 @@ private:
pugi::xml_document m_document;
};
string DebugPrint(XMLFeature const & feature);
} // namespace editor