Horizon
board_net_tie.hpp
1 #pragma once
2 #include "util/uuid.hpp"
3 #include "nlohmann/json_fwd.hpp"
4 #include "util/uuid_ptr.hpp"
5 
6 namespace horizon {
7 using json = nlohmann::json;
8 
9 class BoardNetTie {
10 public:
11  BoardNetTie(const UUID &uu, const json &j, class Board *board = nullptr);
12  BoardNetTie(const UUID &uu);
13  UUID uuid;
14  UUID get_uuid() const;
15 
16  void update_refs(class Board &brd);
17 
18  uuid_ptr<class NetTie> net_tie;
21 
22  int layer = 0;
23  uint64_t width = 0;
24  bool width_from_rules = true;
25 
26  json serialize() const;
27 };
28 } // namespace horizon
Definition: board_net_tie.hpp:9
Definition: board.hpp:47
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