KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ODB_NET_LIST Class Reference

#include <odb_netlist.h>

Public Member Functions

 ODB_NET_LIST (BOARD *aBoard, PCB_IO_ODBPP *aPlugin)
 
virtual ~ODB_NET_LIST ()
 
void Write (std::ostream &aStream, const ODB_FORMAT &aFormat)
 

Private Member Functions

std::string ComputeViaAccessSide (BOARD *aBoard, int top_layer, int bottom_layer)
 
void InitNetPoints (std::map< size_t, std::vector< ODB_NET_RECORD > > &aRecords)
 
void WriteNetPointRecords (std::map< size_t, std::vector< ODB_NET_RECORD > > &aRecords, std::ostream &aStream, const ODB_FORMAT &aFormat)
 Writes a list of records to the given output stream.
 

Private Attributes

BOARD * m_board
 
PCB_IO_ODBPP * m_plugin
 

Detailed Description

Definition at line 58 of file odb_netlist.h.

Constructor & Destructor Documentation

◆ ODB_NET_LIST()

ODB_NET_LIST::ODB_NET_LIST ( BOARD * aBoard,
PCB_IO_ODBPP * aPlugin )
inline

Definition at line 61 of file odb_netlist.h.

References m_board, and m_plugin.

◆ ~ODB_NET_LIST()

virtual ODB_NET_LIST::~ODB_NET_LIST ( )
inlinevirtual

Definition at line 63 of file odb_netlist.h.

Member Function Documentation

◆ ComputeViaAccessSide()

std::string ODB_NET_LIST::ComputeViaAccessSide ( BOARD * aBoard,
int top_layer,
int bottom_layer )
private

Definition at line 47 of file odb_netlist.cpp.

References B_Cu, and F_Cu.

Referenced by InitNetPoints().

◆ InitNetPoints()

◆ Write()

void ODB_NET_LIST::Write ( std::ostream & aStream,
const ODB_FORMAT & aFormat )

Definition at line 195 of file odb_netlist.cpp.

References InitNetPoints(), and WriteNetPointRecords().

◆ WriteNetPointRecords()

void ODB_NET_LIST::WriteNetPointRecords ( std::map< size_t, std::vector< ODB_NET_RECORD > > & aRecords,
std::ostream & aStream,
const ODB_FORMAT & aFormat )
private

Writes a list of records to the given output stream.

Definition at line 134 of file odb_netlist.cpp.

References ODB::Data2String(), ODB_FORMAT::m_originOffset, m_plugin, ODB_FORMAT::m_unitsStr, ODB_UNITS, VECTOR2< T >::x, and VECTOR2< T >::y.

Referenced by Write().

Member Data Documentation

◆ m_board

BOARD* ODB_NET_LIST::m_board
private

Definition at line 68 of file odb_netlist.h.

Referenced by InitNetPoints(), and ODB_NET_LIST().

◆ m_plugin

PCB_IO_ODBPP* ODB_NET_LIST::m_plugin
private

Definition at line 69 of file odb_netlist.h.

Referenced by ODB_NET_LIST(), and WriteNetPointRecords().


The documentation for this class was generated from the following files: