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 "nlohmann/json_fwd.hpp" 12 #include "package/package_rules.hpp" 13 #include "package/pad.hpp" 14 #include "util/uuid.hpp" 15 #include "util/uuid_provider.hpp" 16 #include "util/warning.hpp" 31 ParameterProgram::CommandHandler get_command(
const std::string &cmd)
override;
36 std::deque<int64_t> &stack);
44 Model(
const UUID &uu,
const std::string &filename);
58 json serialize()
const;
63 static Package new_from_file(
const std::string &filename,
class Pool &pool);
65 json serialize()
const;
67 std::pair<Coordi, Coordi> get_bbox()
const;
68 const std::map<int, Layer> &get_layers()
const override;
69 std::pair<bool, std::string> apply_parameter_set(
const ParameterSet &ps);
71 UUID get_uuid()
const;
74 void operator=(
Package const &pkg);
78 std::string manufacturer;
79 std::set<std::string> tags;
81 std::map<UUID, Junction> junctions;
82 std::map<UUID, Line> lines;
83 std::map<UUID, Arc> arcs;
84 std::map<UUID, Text> texts;
85 std::map<UUID, Pad> pads;
86 std::map<UUID, Polygon> polygons;
88 ParameterSet parameter_set;
92 std::map<UUID, Model> models;
96 const class Package *alternate_for =
nullptr;
98 std::vector<Warning> warnings;
Interface for classes that store objects identified by UUID (e.g. Line or Junction) ...
Definition: object_provider.hpp:10
Definition: package.hpp:42
a class to store JSON values
Definition: json.hpp:161
Definition: program.hpp:11
Definition: package.hpp:27
Interface for objects that have a UUID.
Definition: uuid_provider.hpp:9
Definition: package.hpp:25
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:18
basic_json<> json
default JSON class
Definition: json_fwd.hpp:61
A Junction is a point in 2D-Space.
Definition: junction.hpp:25
Definition: program.hpp:48