26#ifndef TGUI_DATA_IO_HPP
27#define TGUI_DATA_IO_HPP
31#include <TGUI/Config.hpp>
57 Node* parent =
nullptr;
58 std::vector<std::shared_ptr<Node>> children;
59 std::map<std::string, std::shared_ptr<ValueNode>> propertyValuePairs;
69 ValueNode(Node* p =
nullptr,
const std::string& v =
"") : parent(p), value(v) {}
74 bool listNode =
false;
75 std::vector<std::string> valueList;
87 static std::shared_ptr<Node> parse(std::stringstream& stream);
97 static void emit(std::shared_ptr<Node> rootNode, std::stringstream& stream);
103 static std::vector<std::string> convertNodesToLines(std::shared_ptr<Node> node);
105 static std::string parseSection(std::stringstream& stream, std::shared_ptr<Node> node,
const std::string& sectionName);
107 static std::string parseKeyValue(std::stringstream& stream, std::shared_ptr<Node> node,
const std::string& key);
109 static std::string readLine(std::stringstream& stream);
111 static std::string readWord(std::stringstream& stream);
Namespace that contains all TGUI functions and classes.
Definition: Animation.hpp:34