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

The 9.0 format writes net declarations with consecutive codes. More...

#include <pcb_writer_v9.h>

Public Member Functions

void SetBoard (const BOARD *aBoard)
 
int Translate (int aNetCode) const
 
const std::vector< NETINFO_ITEM * > & Nets () const
 

Private Attributes

std::map< int, int > m_map
 
std::vector< NETINFO_ITEM * > m_nets
 

Detailed Description

The 9.0 format writes net declarations with consecutive codes.

The mapping helper that did this left the tree with the netcodes, so this is a minimal replacement.

Definition at line 52 of file pcb_writer_v9.h.

Member Function Documentation

◆ Nets()

const std::vector< NETINFO_ITEM * > & NET_MAPPING_V9::Nets ( ) const
inline

Definition at line 65 of file pcb_writer_v9.h.

References m_nets.

◆ SetBoard()

void NET_MAPPING_V9::SetBoard ( const BOARD * aBoard)

◆ Translate()

int NET_MAPPING_V9::Translate ( int aNetCode) const
inline

Definition at line 57 of file pcb_writer_v9.h.

References m_map.

Member Data Documentation

◆ m_map

std::map<int, int> NET_MAPPING_V9::m_map
private

Definition at line 68 of file pcb_writer_v9.h.

Referenced by SetBoard(), and Translate().

◆ m_nets

std::vector<NETINFO_ITEM*> NET_MAPPING_V9::m_nets
private

Definition at line 69 of file pcb_writer_v9.h.

Referenced by Nets(), and SetBoard().


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