DebugPrint for XMLFeature.
This commit is contained in:
parent
26b27734b2
commit
58465c3488
2 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -116,4 +116,7 @@ private:
|
|||
|
||||
pugi::xml_document m_document;
|
||||
};
|
||||
|
||||
string DebugPrint(XMLFeature const & feature);
|
||||
|
||||
} // namespace editor
|
||||
|
|
Reference in a new issue