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

Wrapper to expose an API for writing IPC-D356 files. More...

#include <export_d356.h>

Public Member Functions

 IPC356D_WRITER (BOARD *aPcb)
 Constructs an IPC-356D file writer.
 
virtual ~IPC356D_WRITER ()
 
bool Write (const wxString &aFilename)
 Generates and writes the netlist to a given path.
 
void SetDoNotExportUnconnectedPads (bool aDoNotExportUnconnectedPads)
 Sets whether unconnected pads should be exported.
 

Private Member Functions

void write_D356_records (std::vector< D356_RECORD > &aRecords, FILE *aFile)
 Writes a list of records to the given output stream.
 
void appendPadRecords (BOARD *aPcb, const std::vector< FAB_TEST_POINT > &aPoints, std::vector< D356_RECORD > &aRecords)
 

Private Attributes

BOARD * m_pcb
 
bool m_doNotExportUnconnectedPads
 

Detailed Description

Wrapper to expose an API for writing IPC-D356 files.

Definition at line 59 of file export_d356.h.

Constructor & Destructor Documentation

◆ IPC356D_WRITER()

IPC356D_WRITER::IPC356D_WRITER ( BOARD * aPcb)
inline

Constructs an IPC-356D file writer.

Parameters
aPcbis the board to extract a netlist from

Definition at line 66 of file export_d356.h.

References m_doNotExportUnconnectedPads, and m_pcb.

◆ ~IPC356D_WRITER()

virtual IPC356D_WRITER::~IPC356D_WRITER ( )
inlinevirtual

Definition at line 71 of file export_d356.h.

Member Function Documentation

◆ appendPadRecords()

◆ SetDoNotExportUnconnectedPads()

void IPC356D_WRITER::SetDoNotExportUnconnectedPads ( bool aDoNotExportUnconnectedPads)
inline

Sets whether unconnected pads should be exported.

Parameters
aDoNotExportUnconnectedPadsif true, unconnected pads will not be exported

Definition at line 84 of file export_d356.h.

References m_doNotExportUnconnectedPads.

Referenced by BOARD_EDITOR_CONTROL::GenD356File().

◆ Write()

bool IPC356D_WRITER::Write ( const wxString & aFilename)

Generates and writes the netlist to a given path.

Parameters
aFilenameis the full path and name of the output file
Returns
true on success

Definition at line 445 of file export_d356.cpp.

References appendPadRecords(), appendViaRecords(), FabTestPoints(), m_pcb, TO_UTF8, and write_D356_records().

Referenced by BOOST_AUTO_TEST_CASE(), BOARD_EDITOR_CONTROL::GenD356File(), and PCBNEW_JOBS_HANDLER::JobExportIpcD356().

◆ write_D356_records()

void IPC356D_WRITER::write_D356_records ( std::vector< D356_RECORD > & aRecords,
FILE * aFile )
private

Writes a list of records to the given output stream.

Definition at line 305 of file export_d356.cpp.

References d356_alias(), iu_to_d356(), m_pcb, sanitize_d356_name(), and TO_UTF8.

Referenced by Write().

Member Data Documentation

◆ m_doNotExportUnconnectedPads

bool IPC356D_WRITER::m_doNotExportUnconnectedPads
private

Definition at line 98 of file export_d356.h.

Referenced by appendPadRecords(), IPC356D_WRITER(), and SetDoNotExportUnconnectedPads().

◆ m_pcb

BOARD* IPC356D_WRITER::m_pcb
private

Definition at line 90 of file export_d356.h.

Referenced by IPC356D_WRITER(), Write(), and write_D356_records().


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