29 #include <QTextStream>
37 GroupXmlWriter::GroupXmlWriter()
49 if (!group->getDescription().isEmpty())
56 for (QString proxy : group->getProxies())
61 auto c = group->getConfigurations();
65 for (
auto it =
c.begin(); it !=
c.end(); it++)
76 for (
int i = 0; i < rootNode->getChildren().count(); i++)
78 WriteNode(rootNode->getChildren().at(i), root);
83 std::string contents = builder.
print(
true);
86 ARMARX_INFO_S <<
"Writing new group definition to " << path.toUtf8().data();
94 if (!f.open(QFile::WriteOnly | QFile::Text))
106 switch (node->getNodeType())
109 WriteFolderNode(node, parentXmlNode);
113 WriteStateNode(node, parentXmlNode);
117 throw std::runtime_error(
"Unknown node type");
126 for (
int i = 0; i < node->getChildren().count(); i++)
128 WriteNode(node->getChildren().at(i), xmlNode);