2 #include "util/uuid.hpp"
3 #include "nlohmann/json_fwd.hpp"
4 #include "pool/unit.hpp"
5 #include "block/block.hpp"
7 #include "schematic_rules.hpp"
8 #include "common/pdf_export_settings.hpp"
30 unsigned int update_nets();
42 void expand(
bool careful =
false);
45 void operator=(
const Schematic &sch) =
delete;
85 std::map<UUID, Sheet> sheets;
87 std::map<std::string, std::string> title_block_values;
88 bool group_tag_visible =
false;
95 enum class Order { RIGHT_DOWN, DOWN_RIGHT };
96 Order order = Order::RIGHT_DOWN;
98 enum class Mode { SEQUENTIAL, SHEET_100, SHEET_1000 };
99 Mode mode = Mode::SHEET_100;
101 bool fill_gaps =
true;
103 bool ignore_unknown =
false;
104 json serialize()
const;
112 json serialize()
const;
void disconnect_symbol(Sheet *sheet, SchematicSymbol *sym)
Removes all connections from sym and connects the dangling net lines to junctions.
Definition: schematic.cpp:189
basic_json<> json
default JSON class
Definition: json_fwd.hpp:61
Definition: schematic.hpp:91
LineNet is similar to Line, except it denotes electrical connection.
Definition: line_net.hpp:24
void autoconnect_symbol(Sheet *sheet, SchematicSymbol *sym)
Connects unconnected pins of sym to Nets specified by junctions coincident with pins.
Definition: schematic.cpp:93
A block is one level of hierarchy in the netlist.
Definition: block.hpp:26
Definition: schematic_symbol.hpp:19
A Schematic is the visual representation of a Block.
Definition: schematic.hpp:27
void expand(bool careful=false)
This is where the magic happens.
Definition: schematic.cpp:451
Definition: schematic_rules.hpp:10
a class to store JSON values
Definition: json.hpp:161
void smash_symbol(Sheet *sheet, SchematicSymbol *sym)
Turns sym's texts to regular text objects.
Definition: schematic.cpp:225
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16
void unsmash_symbol(Sheet *sheet, SchematicSymbol *sym)
Undoes what smash_symbol did.
Definition: schematic.cpp:259
Stores objects (Unit, Entity, Symbol, Part, etc.) from the pool.
Definition: pool.hpp:21
void update_refs()
objects owned by the Sheets may hold pointers to other objects of the same sheet or the Block associa...
Definition: schematic.cpp:917
Definition: pdf_export_settings.hpp:9