Horizon
Loading...
Searching...
No Matches
pool_index.hpp
1#pragma once
2#include "nlohmann/json_fwd.hpp"
3#include "util/uuid.hpp"
4#include "common/lut.hpp"
5
6namespace horizon {
7enum class ObjectType;
8using json = nlohmann::json;
9class PoolIndex {
10public:
11 PoolIndex(const UUID &uu, const json &j);
12 UUID uuid;
13 std::string name;
14 std::vector<UUID> included;
15 enum class Level { CORE, EXTRA, COMMUNITY };
16 Level level;
17 std::string gh_user;
18 std::string gh_repo;
19 std::map<ObjectType, unsigned int> type_stats;
20
21 static const LutEnumStr<Level> level_lut;
22};
23} // namespace horizon
Definition lut.hpp:18
Definition pool_index.hpp:9
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