dump elements to std::string

This commit is contained in:
Alexey Fedoseev
2024-05-10 18:36:12 +03:00
parent 345847ce2d
commit 7f861c9fd3
2 changed files with 9 additions and 0 deletions

View File

@@ -130,6 +130,13 @@ CyberiadaNode* Element::to_node() const
return node;
}
std::string Element::dump_to_str() const
{
std::ostringstream s;
dump(s);
return s.str();
}
std::ostream& Element::dump(std::ostream& os) const
{
String type_str;