2 #include "nlohmann/json_fwd.hpp"
3 #include "pool/unit.hpp"
4 #include "util/uuid.hpp"
5 #include "util/uuid_ptr.hpp"
10 #include "net_class.hpp"
17 Net(
const UUID &uu,
const json &,
class Block &block);
18 Net(
const UUID &uu,
const json &);
20 UUID get_uuid()
const;
23 bool is_power =
false;
25 enum class PowerSymbolStyle { GND, EARTH, DOT, ANTENNA };
26 PowerSymbolStyle power_symbol_style = PowerSymbolStyle::GND;
27 bool power_symbol_name_visible =
true;
29 uuid_ptr<NetClass> net_class;
30 uuid_ptr<Net> diffpair;
31 bool diffpair_master =
false;
34 bool is_power_forced =
false;
35 bool is_bussed =
false;
36 unsigned int n_pins_connected = 0;
37 bool has_bus_rippers =
false;
38 json serialize()
const;
39 bool is_named()
const;