Horizon
Loading...
Searching...
No Matches
src
pool
gate.hpp
1
#pragma once
2
#include "nlohmann/json_fwd.hpp"
3
#include "unit.hpp"
4
#include "util/uuid.hpp"
5
6
namespace
horizon {
7
using
json
=
nlohmann::json
;
8
9
class
Gate
{
10
public
:
11
Gate
(
const
UUID
&uu,
const
json
&,
class
IPool
&pool);
12
Gate
(
const
UUID
&uu);
13
UUID
get_uuid()
const
;
14
UUID
uuid;
15
std::string name;
16
std::string suffix;
17
unsigned
int
swap_group = 0;
18
std::shared_ptr<const Unit> unit;
19
20
json
serialize()
const
;
21
};
22
}
// namespace horizon
horizon::Gate
Definition
gate.hpp:9
horizon::IPool
Definition
ipool.hpp:15
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