Horizon
pool_info.hpp
1 #pragma once
2 #include <string>
3 #include "util/uuid.hpp"
4 #include "nlohmann/json_fwd.hpp"
5 #include <vector>
6 
7 namespace horizon {
8 using json = nlohmann::json;
9 
10 class PoolInfo {
11 public:
12  static const UUID project_pool_uuid;
13  PoolInfo(const std::string &bp);
14  PoolInfo();
15  std::string base_path;
16  UUID uuid;
17  UUID default_via;
18  std::string name;
19  std::vector<UUID> pools_included;
20  void save() const;
21  bool is_project_pool() const;
22  void from_json(const json &j);
23 };
24 } // namespace horizon
Definition: pool_info.hpp:10
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16
a class to store JSON values
Definition: json.hpp:170
basic_json<> json
default JSON class
Definition: json_fwd.hpp:62