Horizon
Loading...
Searching...
No Matches
pool_info.hpp
1#pragma once
2#include <string>
3#include "util/uuid.hpp"
4#include "nlohmann/json_fwd.hpp"
5#include <vector>
6#include "util/file_version.hpp"
7
8namespace horizon {
9using json = nlohmann::json;
10
11class PoolInfo {
12public:
13 static const UUID project_pool_uuid;
14 PoolInfo(const std::string &bp);
15 PoolInfo();
16 PoolInfo(const json &j);
17 std::string base_path;
18 UUID uuid;
19 UUID default_via;
20 UUID default_frame;
21 std::string name;
22 std::vector<UUID> pools_included;
23 void save() const;
24 bool is_project_pool() const;
25 bool is_usable() const;
26 static unsigned int get_app_version();
27 FileVersion version;
28
29 unsigned int get_required_version() const;
30
31private:
32 PoolInfo(const json &j, const std::string &bp);
33};
34} // namespace horizon
Definition file_version.hpp:9
Definition pool_info.hpp:11
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:177
basic_json<> json
default JSON class
Definition json_fwd.hpp:62