Horizon
pasted_package.hpp
1 #pragma once
2 #include "util/uuid.hpp"
3 #include "util/placement.hpp"
4 #include "nlohmann/json_fwd.hpp"
5 #include <set>
6 
7 namespace horizon {
8 using json = nlohmann::json;
9 class PastedPackage {
10 public:
11  PastedPackage(const UUID &uu, const json &j);
12  UUID uuid;
13  Placement placement;
14  bool flip;
15  bool omit_silkscreen;
16  bool smashed;
17  UUID group;
18  UUID tag;
19  UUID package;
20  UUID alternate_package;
21  std::map<UUID, UUID> connections;
22  std::set<UUID> texts;
23 };
24 
25 } // namespace horizon
Definition: pasted_package.hpp:9
Definition: placement.hpp:8
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16
a class to store JSON values
Definition: json.hpp:177
basic_json<> json
default JSON class
Definition: json_fwd.hpp:62