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 #include <fstream>
7 #include <map>
8 #include <vector>
9 
10 namespace horizon {
11 using json = nlohmann::json;
12 
13 class Gate {
14 public:
15  Gate(const UUID &uu, const json &, class IPool &pool);
16  Gate(const UUID &uu);
17  UUID get_uuid() const;
18  UUID uuid;
19  std::string name;
20  std::string suffix;
21  unsigned int swap_group = 0;
22  uuid_ptr<const Unit> unit;
23 
24  json serialize() const;
25 };
26 } // namespace horizon
nlohmann::basic_json
a class to store JSON values
Definition: json.hpp:166
nlohmann::json
basic_json<> json
default JSON class
Definition: json_fwd.hpp:61