summaryrefslogtreecommitdiffstats
path: root/Project/FileHanding.h
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2018-01-03 19:01:57 -0200
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2018-01-03 19:01:57 -0200
commitcef9e14b989a3ba19321e4fe215ada2ee3998037 (patch)
tree245a63164fcd4131c48ebd1883615d112b0b59e9 /Project/FileHanding.h
parent0c0280cfcf540f943fd2dbfdf7ac0304ea96a465 (diff)
downloadPSP.git-cef9e14b989a3ba19321e4fe215ada2ee3998037.tar.gz
PSP.git-cef9e14b989a3ba19321e4fe215ada2ee3998037.tar.xz
PSP.git-cef9e14b989a3ba19321e4fe215ada2ee3998037.zip
Some file hand. organization and generalization
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