2 #include "block/component.hpp"
3 #include "nlohmann/json_fwd.hpp"
4 #include "pool/package.hpp"
5 #include "util/placement.hpp"
6 #include "util/uuid.hpp"
7 #include "util/uuid_ptr.hpp"
17 BoardPackage(
const UUID &uu,
const json &, Block &block,
class IPool &pool);
18 BoardPackage(
const UUID &uu, Component *comp);
19 BoardPackage(
const UUID &uu);
20 BoardPackage(shallow_copy_t sh,
const BoardPackage &other);
22 uuid_ptr<Component> component;
23 const Package *alternate_package =
nullptr;
26 const Package *pool_package;
32 bool omit_silkscreen =
false;
34 bool omit_outline =
false;
35 std::vector<uuid_ptr<Text>> texts;
37 std::string replace_text(
const std::string &t,
bool *replaced =
nullptr)
const;
39 UUID get_uuid()
const;
40 json serialize()
const;
41 static std::vector<UUID> peek_texts(
const json &j);