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 "common/dimension.hpp" 13 #include "nlohmann/json_fwd.hpp" 14 #include "package/package_rules.hpp" 15 #include "package/pad.hpp" 16 #include "util/uuid.hpp" 17 #include "util/uuid_provider.hpp" 18 #include "util/warning.hpp" 19 #include "parameter/program_polygon.hpp" 34 std::map<UUID, Polygon> &get_polygons()
override;
37 ParameterProgram::CommandHandler get_command(
const std::string &cmd)
override;
46 Model(
const UUID &uu,
const std::string &filename);
60 json serialize()
const;
65 static Package new_from_file(
const std::string &filename,
class Pool &pool);
67 json serialize()
const;
70 std::pair<Coordi, Coordi> get_bbox()
const;
71 const std::map<int, Layer> &get_layers()
const override;
72 std::pair<bool, std::string> apply_parameter_set(
const ParameterSet &ps);
74 void update_warnings();
75 int get_max_pad_name()
const;
77 UUID get_uuid()
const override;
80 void operator=(
Package const &pkg);
84 std::string manufacturer;
85 std::set<std::string> tags;
87 std::map<UUID, Junction> junctions;
88 std::map<UUID, Line> lines;
89 std::map<UUID, Arc> arcs;
90 std::map<UUID, Text> texts;
91 std::map<UUID, Pad> pads;
92 std::map<UUID, Polygon> polygons;
93 std::map<UUID, Keepout> keepouts;
94 std::map<UUID, Dimension> dimensions;
96 ParameterSet parameter_set;
100 std::map<UUID, Model> models;
104 const class Package *alternate_for =
nullptr;
106 std::vector<Warning> warnings;
108 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:44
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
zip_int64_t int64_t
zip_int64_t typedef.
Definition: zip.hpp:103
Definition: package.hpp:30
Interface for objects that have a UUID.
Definition: uuid_provider.hpp:9
Definition: package.hpp:28
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:21
basic_json<> json
default JSON class
Definition: json_fwd.hpp:61
A Junction is a point in 2D-Space.
Definition: junction.hpp:25