Horizon
Loading...
Searching...
No Matches
gate.hpp
1#pragma once
2#include "nlohmann/json_fwd.hpp"
3#include "unit.hpp"
4#include "util/uuid.hpp"
5
6namespace horizon {
7using json = nlohmann::json;
8
9class Gate {
10public:
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
Definition gate.hpp:9
Definition ipool.hpp:15
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