Horizon
Loading...
Searching...
No Matches
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
6namespace horizon {
7using json = nlohmann::json;
8
10public:
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
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