summaryrefslogtreecommitdiffstats
path: root/Project/IndMotor.cpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2018-01-08 20:07:47 -0200
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2018-01-08 20:07:47 -0200
commitc11a42ee83fcf535557d4f2cc259efae2da1b7ff (patch)
tree13fd8f4449f2cfeed8a6185e96a6889f9529285d /Project/IndMotor.cpp
parent95f61a7cad71c45c9e27af5c6f4bc5d64d5ecc45 (diff)
downloadPSP.git-c11a42ee83fcf535557d4f2cc259efae2da1b7ff.tar.gz
PSP.git-c11a42ee83fcf535557d4f2cc259efae2da1b7ff.tar.xz
PSP.git-c11a42ee83fcf535557d4f2cc259efae2da1b7ff.zip
File handling and control initialization organized
Diffstat (limited to 'Project/IndMotor.cpp')
-rw-r--r--Project/IndMotor.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Project/IndMotor.cpp b/Project/IndMotor.cpp
index 73c9c4f..e8008dd 100644
--- a/Project/IndMotor.cpp
+++ b/Project/IndMotor.cpp
@@ -143,7 +143,7 @@ wxString IndMotor::GetTipText() const
return tipText;
}
-void IndMotor::SaveElement(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* elementListNode)
+rapidxml::xml_node<>* IndMotor::SaveElement(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* elementListNode)
{
auto elementNode = XMLParser::AppendNode(doc, elementListNode, "IndMotor");
XMLParser::SetNodeAttribute(doc, elementNode, "ID", m_elementID);
@@ -162,6 +162,8 @@ void IndMotor::SaveElement(rapidxml::xml_document<>& doc, rapidxml::xml_node<>*
auto reactivePower = XMLParser::AppendNode(doc, electricalProp, "ReactivePower");
XMLParser::SetNodeValue(doc, reactivePower, m_electricalData.reactivePower);
XMLParser::SetNodeAttribute(doc, reactivePower, "UnitID", m_electricalData.reactivePowerUnit);
+
+ return elementNode;
}
bool IndMotor::OpenElement(rapidxml::xml_node<>* elementNode, std::vector<Element*> parentList)