summaryrefslogtreecommitdiffstats
path: root/Project/FileHanding.h
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2018-01-08 20:09:35 -0200
committerGitHub <noreply@github.com>2018-01-08 20:09:35 -0200
commit29af4e28898f44df444fef5534134c6b6000418d (patch)
tree13fd8f4449f2cfeed8a6185e96a6889f9529285d /Project/FileHanding.h
parent0c0280cfcf540f943fd2dbfdf7ac0304ea96a465 (diff)
parentc11a42ee83fcf535557d4f2cc259efae2da1b7ff (diff)
downloadPSP.git-29af4e28898f44df444fef5534134c6b6000418d.tar.gz
PSP.git-29af4e28898f44df444fef5534134c6b6000418d.tar.xz
PSP.git-29af4e28898f44df444fef5534134c6b6000418d.zip
Merge pull request #44 from Thales1330/org/file-handling-and-ctrl-init
Org file handling and ctrl init
Diffstat (limited to 'Project/FileHanding.h')
-rw-r--r--Project/FileHanding.h24
1 files changed, 1 insertions, 23 deletions
diff --git a/Project/FileHanding.h b/Project/FileHanding.h
index 83c7587..6645254 100644
--- a/Project/FileHanding.h
+++ b/Project/FileHanding.h
@@ -28,10 +28,7 @@
#include "ElectricCalculation.h"
#include "Text.h"
-#include "rapidXML/rapidxml.hpp"
-// Modified: http://stackoverflow.com/questions/14113923/rapidxml-print-header-has-undefined-methods
-#include "rapidXML/rapidxml_print.hpp"
-#include "rapidXML/rapidxml_utils.hpp"
+#include "XMLParser.h"
/**
* @class FileHanding
@@ -63,25 +60,6 @@ public:
protected:
Workspace* m_workspace = NULL;
ControlEditor* m_controlEditor = NULL;
-
- rapidxml::xml_node<>* AppendNode(rapidxml::xml_document<>& doc,
- rapidxml::xml_node<>* parentNode,
- const char* name,
- rapidxml::node_type nodeType = rapidxml::node_element);
- void SetNodeValue(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* node, wxString value);
- void SetNodeValue(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* node, int value);
- void SetNodeValue(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* node, double value);
- void SetNodeAttribute(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* node, const char* atrName, wxString value);
- void SetNodeAttribute(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* node, const char* atrName, int value);
- void SetNodeAttribute(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* node, const char* atrName, double value);
- double GetNodeValueDouble(rapidxml::xml_node<>* parent, const char* nodeName);
- int GetNodeValueInt(rapidxml::xml_node<>* parent, const char* nodeName);
- int GetAttributeValueInt(rapidxml::xml_node<>* parent, const char* nodeName, const char* atrName);
- int GetAttributeValueInt(rapidxml::xml_node<>* node, const char* atrName);
-
- void SaveControlNodes(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* nodesN, std::vector<Node*> nodeList);
- ControlElement* GetControlElementFromID(std::vector<ControlElement*> elementList, int id);
- bool OpenControlNodeList(rapidxml::xml_node<>* elementNode, std::vector<Node*>& nodeVector);
};
#endif // FILEHANDING_H