TraceMaker
C++ API of the engine
Loading...
Searching...
No Matches
netlist.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: GPL-3.0-or-later
2
#pragma once
3
// Schematic connectivity as exported by KiCad (kicad-cli sch export netlist --format kicadsexpr).
4
#include <string>
5
#include <vector>
6
7
namespace
tmk::model
{
8
9
struct
NetlistComponent
{
10
std::string
ref
,
value
,
footprint
;
11
bool
dnp
=
false
,
exclude_from_board
=
false
;
12
};
13
14
struct
NetlistNode
{
15
std::string
ref
,
pin
,
pinfunction
,
pintype
;
16
};
17
18
struct
NetlistNet
{
19
std::string
name
,
netclass
;
20
std::vector<NetlistNode>
nodes
;
21
};
22
23
struct
Netlist
{
24
std::vector<NetlistComponent>
components
;
25
std::vector<NetlistNet>
nets
;
26
};
27
28
}
// namespace tmk::model
tmk::model
Definition
board.hpp:17
tmk::model::NetlistComponent
Definition
netlist.hpp:9
tmk::model::NetlistComponent::dnp
bool dnp
Definition
netlist.hpp:11
tmk::model::NetlistComponent::ref
std::string ref
Definition
netlist.hpp:10
tmk::model::NetlistComponent::exclude_from_board
bool exclude_from_board
Definition
netlist.hpp:11
tmk::model::NetlistComponent::value
std::string value
Definition
netlist.hpp:10
tmk::model::NetlistComponent::footprint
std::string footprint
Definition
netlist.hpp:10
tmk::model::NetlistNet
Definition
netlist.hpp:18
tmk::model::NetlistNet::netclass
std::string netclass
Definition
netlist.hpp:19
tmk::model::NetlistNet::nodes
std::vector< NetlistNode > nodes
Definition
netlist.hpp:20
tmk::model::NetlistNet::name
std::string name
Definition
netlist.hpp:19
tmk::model::NetlistNode
Definition
netlist.hpp:14
tmk::model::NetlistNode::ref
std::string ref
Definition
netlist.hpp:15
tmk::model::NetlistNode::pin
std::string pin
Definition
netlist.hpp:15
tmk::model::NetlistNode::pintype
std::string pintype
Definition
netlist.hpp:15
tmk::model::NetlistNode::pinfunction
std::string pinfunction
Definition
netlist.hpp:15
tmk::model::Netlist
Definition
netlist.hpp:23
tmk::model::Netlist::components
std::vector< NetlistComponent > components
Definition
netlist.hpp:24
tmk::model::Netlist::nets
std::vector< NetlistNet > nets
Definition
netlist.hpp:25
model
netlist.hpp
Generated by
1.15.0