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;
23 
24  json serialize() const;
25 };
26 } // namespace horizon
Definition: gate.hpp:13
Definition: ipool.hpp:12
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:166
basic_json<> json
default JSON class
Definition: json_fwd.hpp:61