Remove boost dependency
[platform/core/appfw/app-installers.git] / src / common / plugins / plugin_list_parser.h
index ed85978..2e310dd 100644 (file)
@@ -5,14 +5,13 @@
 #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>
@@ -29,16 +28,16 @@ namespace common_installer {
 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_;
 };
 
@@ -46,7 +45,7 @@ class PluginInfo {
 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();
@@ -69,7 +68,7 @@ class PluginsListParser {
   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_;
 };