Horizon
gate.hpp
1#pragma once
2#include "nlohmann/json_fwd.hpp"
3#include "unit.hpp"
4#include "util/uuid.hpp"
5#include "util/uuid_ptr.hpp"
6
7namespace horizon {
8using json = nlohmann::json;
9
10class Gate {
11public:
12 Gate(const UUID &uu, const json &, class IPool &pool);
13 Gate(const UUID &uu);
14 UUID get_uuid() const;
15 UUID uuid;
16 std::string name;
17 std::string suffix;
18 unsigned int swap_group = 0;
20
21 json serialize() const;
22};
23} // namespace horizon
Definition: gate.hpp:10
Definition: ipool.hpp:14
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16
Definition: uuid_ptr.hpp:8
a class to store JSON values
Definition: json.hpp:177
basic_json<> json
default JSON class
Definition: json_fwd.hpp:62