2 #include "common/arc.hpp" 3 #include "common/common.hpp" 4 #include "common/hole.hpp" 5 #include "common/junction.hpp" 6 #include "common/layer_provider.hpp" 7 #include "common/line.hpp" 8 #include "common/object_provider.hpp" 9 #include "common/polygon.hpp" 10 #include "common/text.hpp" 11 #include "common/keepout.hpp" 12 #include "nlohmann/json_fwd.hpp" 13 #include "package/package_rules.hpp" 14 #include "package/pad.hpp" 15 #include "util/uuid.hpp" 16 #include "util/uuid_provider.hpp" 17 #include "util/warning.hpp" 18 #include "parameter/program_polygon.hpp" 33 std::map<UUID, Polygon> &get_polygons()
override;
36 ParameterProgram::CommandHandler get_command(
const std::string &cmd)
override;
45 Model(
const UUID &uu,
const std::string &filename);
59 json serialize()
const;
64 static Package new_from_file(
const std::string &filename,
class Pool &pool);
66 json serialize()
const;
69 std::pair<Coordi, Coordi> get_bbox()
const;
70 const std::map<int, Layer> &get_layers()
const override;
71 std::pair<bool, std::string> apply_parameter_set(
const ParameterSet &ps);
73 void update_warnings();
75 UUID get_uuid()
const;
78 void operator=(
Package const &pkg);
82 std::string manufacturer;
83 std::set<std::string> tags;
85 std::map<UUID, Junction> junctions;
86 std::map<UUID, Line> lines;
87 std::map<UUID, Arc> arcs;
88 std::map<UUID, Text> texts;
89 std::map<UUID, Pad> pads;
90 std::map<UUID, Polygon> polygons;
91 std::map<UUID, Keepout> keepouts;
93 ParameterSet parameter_set;
97 std::map<UUID, Model> models;
101 const class Package *alternate_for =
nullptr;
103 std::vector<Warning> warnings;
105 void update_refs(
class Pool &pool);
Interface for classes that store objects identified by UUID (e.g. Line or Junction) ...
Definition: object_provider.hpp:10
Definition: package.hpp:43
Polygon used in Padstack, Package and Board for specifying filled Regions.
Definition: polygon.hpp:27
a class to store JSON values
Definition: json.hpp:161
Definition: package.hpp:29
Interface for objects that have a UUID.
Definition: uuid_provider.hpp:9
Definition: package.hpp:27
Definition: program_polygon.hpp:8
Definition: package_rules.hpp:10
Definition: layer_provider.hpp:7
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16
Stores objects (Unit, Entity, Symbol, Part, etc.) from the pool.
Definition: pool.hpp:19
basic_json<> json
default JSON class
Definition: json_fwd.hpp:61
A Junction is a point in 2D-Space.
Definition: junction.hpp:25