diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2018-01-08 20:07:47 -0200 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2018-01-08 20:07:47 -0200 |
commit | c11a42ee83fcf535557d4f2cc259efae2da1b7ff (patch) | |
tree | 13fd8f4449f2cfeed8a6185e96a6889f9529285d /Project/XMLParser.h | |
parent | 95f61a7cad71c45c9e27af5c6f4bc5d64d5ecc45 (diff) | |
download | PSP.git-c11a42ee83fcf535557d4f2cc259efae2da1b7ff.tar.gz PSP.git-c11a42ee83fcf535557d4f2cc259efae2da1b7ff.tar.xz PSP.git-c11a42ee83fcf535557d4f2cc259efae2da1b7ff.zip |
File handling and control initialization organized
Diffstat (limited to 'Project/XMLParser.h')
-rw-r--r-- | Project/XMLParser.h | 35 |
1 files changed, 25 insertions, 10 deletions
diff --git a/Project/XMLParser.h b/Project/XMLParser.h index ee8f5a0..b66fe74 100644 --- a/Project/XMLParser.h +++ b/Project/XMLParser.h @@ -25,27 +25,42 @@ #include <wx/string.h> +/** + * @class XMLParser + * @author Thales Lima Oliveira <thales@ufu.br> + * @date 08/01/2018 + * @brief XML parser to save and open project and control files. + * @file XMLParser.h + */ class XMLParser { -public: + public: XMLParser(); ~XMLParser(); - + static rapidxml::xml_node<>* AppendNode(rapidxml::xml_document<>& doc, - rapidxml::xml_node<>* parentNode, - const char* name, - rapidxml::node_type nodeType = rapidxml::node_element); + rapidxml::xml_node<>* parentNode, + const char* name, + rapidxml::node_type nodeType = rapidxml::node_element); static void SetNodeValue(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* node, wxString value); static void SetNodeValue(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* node, int value); static void SetNodeValue(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* node, double value); - static void SetNodeAttribute(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* node, const char* atrName, wxString value); - static void SetNodeAttribute(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* node, const char* atrName, int value); - static void SetNodeAttribute(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* node, const char* atrName, double value); + static void SetNodeAttribute(rapidxml::xml_document<>& doc, + rapidxml::xml_node<>* node, + const char* atrName, + wxString value); + static void SetNodeAttribute(rapidxml::xml_document<>& doc, + rapidxml::xml_node<>* node, + const char* atrName, + int value); + static void SetNodeAttribute(rapidxml::xml_document<>& doc, + rapidxml::xml_node<>* node, + const char* atrName, + double value); static double GetNodeValueDouble(rapidxml::xml_node<>* parent, const char* nodeName); static int GetNodeValueInt(rapidxml::xml_node<>* parent, const char* nodeName); static int GetAttributeValueInt(rapidxml::xml_node<>* parent, const char* nodeName, const char* atrName); static int GetAttributeValueInt(rapidxml::xml_node<>* node, const char* atrName); - }; -#endif // XMLPARSER_H +#endif // XMLPARSER_H |