Horizon
pool_cached.hpp
1 #pragma once
2 #include "pool.hpp"
3 
4 namespace horizon {
5 class PoolCached : public Pool {
6 public:
7  PoolCached(const std::string &base_path, const std::string &cache_path);
8  const std::string &get_cache_path() const;
9  std::string get_filename(ObjectType type, const UUID &uu, UUID *pool_uuid_out) override;
10  std::string get_model_filename(const UUID &pkg_uuid, const UUID &model_uuid) override;
11 
12 
13 private:
14  std::string cache_path;
15  UUID main_pool_uuid;
16 };
17 } // namespace horizon