#ifndef COMMON_PLUGINS_PLUGIN_XML_PARSER_H_
#define COMMON_PLUGINS_PLUGIN_XML_PARSER_H_
-#include <boost/filesystem/path.hpp>
-
#include <libxml2/libxml/xmlreader.h>
+#include <filesystem>
#include <string>
#include <vector>
#include <set>
/** this class parse xml file*/
class PluginsXmlParser {
public:
- explicit PluginsXmlParser(const boost::filesystem::path& path)
+ explicit PluginsXmlParser(const std::filesystem::path& path)
: path_(path), doc_ptr_(nullptr) {}
~PluginsXmlParser();
bool Parse();
xmlDocPtr doc_ptr();
private:
- const boost::filesystem::path path_;
+ const std::filesystem::path path_;
xmlDocPtr doc_ptr_;
std::vector<std::string> tags_;
int NextChildElement(xmlTextReaderPtr reader, int depth);