svd2cpp/Src/XmlParser.hpp

19 lines
359 B
C++
Raw Normal View History

2019-11-14 09:34:46 +00:00
#ifndef XML_PARSER
#define XML_PARSER
#include <tinyxml2.h>
#include <string>
#include <optional>
#include <memory>
2019-11-14 09:34:46 +00:00
struct XmlParser{
XmlParser(const std::string& inputFile);
std::optional<std::string> isError() const;
void parseXml();
2019-11-14 09:34:46 +00:00
private:
tinyxml2::XMLDocument xmlDocument;
tinyxml2::XMLElement* root;
2019-11-14 09:34:46 +00:00
};
#endif