diff options
Diffstat (limited to 'include/cru/xml/XmlParser.hpp')
-rw-r--r-- | include/cru/xml/XmlParser.hpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/cru/xml/XmlParser.hpp b/include/cru/xml/XmlParser.hpp new file mode 100644 index 00000000..19f569d1 --- /dev/null +++ b/include/cru/xml/XmlParser.hpp @@ -0,0 +1,29 @@ +#pragma once + +#include "XmlNode.hpp" + +#include "cru/common/String.hpp" + +#include <optional> + +namespace cru::xml { +class XmlParser { + public: + explicit XmlParser(String xml); + + CRU_DELETE_COPY(XmlParser) + CRU_DELETE_MOVE(XmlParser) + + ~XmlParser(); + + XmlNode Parse(); + + private: + XmlNode DoParse(); + + private: + String xml_; + + std::optional<XmlNode> root_node_; +}; +} // namespace cru::xml |