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 #include <fstream>
9 #include <map>
10 #include <vector>
11 
12 namespace horizon {
13 using json = nlohmann::json;
14 
15 class Pad {
16 public:
17  Pad(const UUID &uu, const json &, class IPool &pool);
18  Pad(const UUID &uu, const Padstack *ps);
19  UUID uuid;
20  uuid_ptr<const Padstack> pool_padstack;
21  Padstack padstack;
22  Placement placement;
23  std::string name;
24  ParameterSet parameter_set;
25 
26  uuid_ptr<Net> net = nullptr;
27  bool is_nc = false;
28  std::string secondary_text;
29 
30  UUID get_uuid() const;
31  json serialize() const;
32 };
33 } // namespace horizon
horizon::uuid_ptr
Definition: uuid_ptr.hpp:8
horizon::Pad
Definition: pad.hpp:15
horizon::Padstack
Definition: padstack.hpp:21
horizon::IPool
Definition: ipool.hpp:12
nlohmann::basic_json
a class to store JSON values
Definition: json.hpp:166
horizon::UUID
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16
nlohmann::json
basic_json<> json
default JSON class
Definition: json_fwd.hpp:61
horizon::Placement
Definition: placement.hpp:8