Horizon
src
board
via.hpp
1
#pragma once
2
#include "common/common.hpp"
3
#include "common/junction.hpp"
4
#include "nlohmann/json_fwd.hpp"
5
#include "pool/padstack.hpp"
6
#include "util/uuid.hpp"
7
#include "util/uuid_ptr.hpp"
8
#include <fstream>
9
#include <map>
10
#include <set>
11
#include <vector>
12
13
namespace
horizon {
14
using
json
=
nlohmann::json
;
15
16
class
Via
{
17
public
:
18
Via
(
const
UUID
&uu,
const
json
&j,
class
Board
*brd =
nullptr
,
class
ViaPadstackProvider
*vpp =
nullptr
);
19
Via
(
const
UUID
&uu,
const
Padstack
*ps);
20
21
UUID
uuid;
22
23
uuid_ptr<Net>
net_set =
nullptr
;
24
uuid_ptr<Junction>
junction =
nullptr
;
25
uuid_ptr<const Padstack>
vpp_padstack;
26
Padstack
padstack;
27
28
ParameterSet parameter_set;
29
30
bool
from_rules =
true
;
31
bool
locked =
false
;
32
33
json
serialize()
const
;
34
};
35
}
// namespace horizon
horizon::uuid_ptr
Definition:
uuid_ptr.hpp:9
nlohmann::json
basic_json<> json
default JSON class
Definition:
json_fwd.hpp:61
horizon::Board
Definition:
board.hpp:31
horizon::ViaPadstackProvider
Definition:
via_padstack_provider.hpp:13
horizon::Padstack
Definition:
padstack.hpp:21
horizon::Via
Definition:
via.hpp:16
nlohmann::basic_json
a class to store JSON values
Definition:
json.hpp:161
horizon::UUID
This class encapsulates a UUID and allows it to be uses as a value type.
Definition:
uuid.hpp:16
Generated by
1.8.16