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
horizon::PoolCached
Definition: pool_cached.hpp:5
horizon::UUID
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16
horizon::Pool
Stores objects (Unit, Entity, Symbol, Part, etc.) from the pool.
Definition: pool.hpp:23