26#ifndef TGUI_DATA_IO_HPP
27#define TGUI_DATA_IO_HPP
31#include <TGUI/String.hpp>
58 Node(Node&&) =
default;
59 Node& operator=(
const Node&) =
delete;
60 Node& operator=(Node&&) =
default;
62 Node(
const Node& other) :
68 for (
const auto& child : other.children)
69 children.push_back(std::make_unique<Node>(*child));
70 for (
const auto& pair : other.propertyValuePairs)
71 propertyValuePairs[pair.first] = std::make_unique<ValueNode>(*pair.second);
74 Node* parent =
nullptr;
75 std::vector<std::unique_ptr<Node>> children;
76 std::map<String, std::unique_ptr<ValueNode>> propertyValuePairs;
86 ValueNode(String v =
"") : value(std::move(v)) {}
89 bool listNode =
false;
90 std::vector<String> valueList;
102 static std::unique_ptr<Node> parse(std::stringstream& stream);
112 static void emit(
const std::unique_ptr<Node>& rootNode, std::stringstream& stream);
Namespace that contains all TGUI functions and classes.
Definition: AbsoluteOrRelativeValue.hpp:36