Skip to content
Snippets Groups Projects
Commit 1ae76433 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

added number of elements to the XML file

parent 654a24f5
No related branches found
No related tags found
No related merge requests found
......@@ -188,6 +188,10 @@ namespace ChimeraTK {
// add sub-element containing the description
xmlpp::Element *descriptionElement = variable->add_child("description");
descriptionElement->set_child_text(pdata->network->getDescription());
// add sub-element containing the description
xmlpp::Element *nElementsElement = variable->add_child("numberOfElements");
nElementsElement->set_child_text(std::to_string(pdata->network->getFeedingNode().getNumberOfElements()));
}
/*********************************************************************************************************************/
......
......@@ -35,6 +35,7 @@
<xsd:element name="direction" type="DirectionType" minOccurs="1" maxOccurs="1"/>
<xsd:element name="unit" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="description" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="numberOfElements" type="xsd:integer" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required"/>
</xsd:complexType>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment