diff options
Diffstat (limited to 'Project/FileHanding.h')
-rw-r--r-- | Project/FileHanding.h | 24 |
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 |