Horizon
Loading...
Searching...
No Matches
src
pool-prj-mgr
pools_window
pool_index.hpp
1
#pragma once
2
#include "nlohmann/json_fwd.hpp"
3
#include "util/uuid.hpp"
4
#include "common/lut.hpp"
5
6
namespace
horizon {
7
enum class
ObjectType;
8
using
json
=
nlohmann::json
;
9
class
PoolIndex
{
10
public
:
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
horizon::LutEnumStr
Definition
lut.hpp:18
horizon::PoolIndex
Definition
pool_index.hpp:9
horizon::UUID
This class encapsulates a UUID and allows it to be uses as a value type.
Definition
uuid.hpp:16
nlohmann::basic_json
a class to store JSON values
Definition
json.hpp:177
nlohmann::json
basic_json<> json
default JSON class
Definition
json_fwd.hpp:62
Generated by
1.9.8