Remove boost dependency
[platform/core/appfw/app-installers.git] / src / common / global_recovery_file.h
index da3e78a..6e52ba6 100644 (file)
@@ -5,14 +5,13 @@
 #ifndef COMMON_GLOBAL_RECOVERY_FILE_H_
 #define COMMON_GLOBAL_RECOVERY_FILE_H_
 
-#include <boost/filesystem/path.hpp>
-
+#include <filesystem>
 #include <string>
 #include <vector>
 
 #include "common/pkgmgr_interface.h"
 
-namespace bf = boost::filesystem;
+namespace fs = std::filesystem;
 
 namespace common_installer {
 
@@ -25,18 +24,18 @@ class GlobalRecoveryFile {
 
   std::string AddPathWithType(const std::string& pkg_type);
 
-  bool AppendPath(const bf::path& additional_path);
+  bool AppendPath(const fs::path& additional_path);
 
   bool AppendCleanUp();
 
  private:
   bool AppendString(const std::string& val);
-  bf::path GenerateRecoveryFilePath(
-      const bf::path& path,
+  fs::path GenerateRecoveryFilePath(
+      const fs::path& path,
       const std::string& type);
   std::shared_ptr<common_installer::PkgMgrInterface> pkgmgr_;
-  bf::path recovery_filepath_;
-  bf::path backup_path_;
+  fs::path recovery_filepath_;
+  fs::path backup_path_;
   std::vector<std::string> recovery_list_;
 };