#ifndef COMMON_PLUGINS_PLUGIN_LIST_PARSER_H_
#define COMMON_PLUGINS_PLUGIN_LIST_PARSER_H_
-#include <boost/filesystem/path.hpp>
-
#include <libxml/parser.h>
#include <libxml/xmlreader.h>
#include <libxml/xmlschemas.h>
#include <cstdlib>
#include <cstring>
+#include <filesystem>
#include <fstream>
#include <iostream>
#include <memory>
class PluginInfo {
public:
PluginInfo(std::string type, std::string name,
- boost::filesystem::path path, bool vitalness);
+ std::filesystem::path path, bool vitalness);
const std::string& type() const;
const std::string& name() const;
- const boost::filesystem::path& path() const;
+ const std::filesystem::path& path() const;
bool vitalness() const;
private:
std::string type_;
std::string name_;
- boost::filesystem::path path_;
+ std::filesystem::path path_;
bool vitalness_;
};
class PluginsListParser {
public:
using PluginList = std::vector<std::shared_ptr<PluginInfo>>;
- explicit PluginsListParser(const boost::filesystem::path& path)
+ explicit PluginsListParser(const std::filesystem::path& path)
: path_(path) {}
bool Parse();
bool ValidName(const std::string& name);
bool ValidPath(const std::string& path);
- const boost::filesystem::path path_;
+ const std::filesystem::path path_;
std::vector<std::shared_ptr<PluginInfo>> plugin_info_list_;
};