Horizon
pad.hpp
1 #pragma once
2 #include "nlohmann/json_fwd.hpp"
3 #include "parameter/set.hpp"
4 #include "pool/padstack.hpp"
5 #include "util/placement.hpp"
6 #include "util/uuid.hpp"
7 #include "util/uuid_ptr.hpp"
8 
9 namespace horizon {
10 using json = nlohmann::json;
11 
12 class Pad {
13 public:
14  Pad(const UUID &uu, const json &, class IPool &pool);
15  Pad(const UUID &uu, const Padstack *ps);
16  UUID uuid;
17  uuid_ptr<const Padstack> pool_padstack;
18  Padstack padstack;
19  Placement placement;
20  std::string name;
21  ParameterSet parameter_set;
22 
23  uuid_ptr<class Net> net = nullptr;
24  bool is_nc = false;
25  std::string secondary_text;
26 
27  UUID get_uuid() const;
28  json serialize() const;
29 };
30 } // namespace horizon
Definition: ipool.hpp:14
Definition: pad.hpp:12
Definition: padstack.hpp:19
Definition: placement.hpp:8
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16
Definition: uuid_ptr.hpp:8
a class to store JSON values
Definition: json.hpp:177
basic_json<> json
default JSON class
Definition: json_fwd.hpp:62