karazeh
A cross-platform software updating library.
path_resolver.hpp
Go to the documentation of this file.
1 
21 #ifndef H_KARAZEH_PATH_RESOLVER_H
22 #define H_KARAZEH_PATH_RESOLVER_H
23 
24 #include "binreloc/binreloc.h"
25 #include "karazeh_export.h"
26 #include "karazeh/karazeh.hpp"
27 #include "karazeh/logger.hpp"
28 #include "karazeh/hasher.hpp"
29 
30 namespace kzh {
31  class KARAZEH_EXPORT path_resolver : protected logger {
32  public:
33  path_resolver();
34  virtual ~path_resolver();
35 
47  path_t const& get_root_path() const;
48 
53  path_t const& get_cache_path() const;
54 
67  void resolve(path_t root = "", bool verbose = false);
68 
69  private:
70  path_t root_path_;
71  path_t cache_path_;
72  };
73 
74 } // end of namespace kzh
75 
76 #endif
boost::filesystem::path path_t
Definition: karazeh.hpp:57
Definition: config.hpp:32
Definition: path_resolver.hpp:31
bool verbose
Definition: config.hpp:39
Definition: logger.hpp:35
Definition: config.hpp:27