Horizon
net_label.hpp
1 #pragma once
2 #include "util/uuid.hpp"
3 #include "nlohmann/json_fwd.hpp"
4 #include "common/common.hpp"
5 #include "util/uuid_ptr.hpp"
6 #include <vector>
7 #include <map>
8 #include <set>
9 #include <fstream>
10 
11 
12 namespace horizon {
13 using json = nlohmann::json;
14 
20 class NetLabel {
21 public:
22  NetLabel(const UUID &uu, const json &j, class Sheet *sheet = nullptr);
23  NetLabel(const UUID &uu);
24 
25  UUID uuid;
26 
27  enum class Style { PLAIN, FLAG };
28  Style style = Style::FLAG;
29 
31  Orientation orientation = Orientation::RIGHT;
32  uint64_t size = 1.5_mm;
33  std::set<unsigned int> on_sheets;
34  bool offsheet_refs = true;
35 
36  json serialize() const;
37 };
38 } // namespace horizon
Displays the junction's Net name it is attached to.
Definition: net_label.hpp:20
Definition: sheet.hpp:39
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
zip_uint64_t uint64_t
zip_uint64_t_t typedef.
Definition: zip.hpp:108
basic_json<> json
default JSON class
Definition: json_fwd.hpp:61