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

@@ -93,6 +93,8 @@ namespace Cyberiada {
friend std::ostream& operator<<(std::ostream& os, const Element& e);
virtual CyberiadaNode* to_node() const;
virtual std::string dump_to_str() const;
protected:
Element* find_root();
void set_type(ElementType t) { type = t; };