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, wxWindow *aParent=nullptr)
 Constructs an IPC-356D file writer.
 
virtual ~IPC356D_WRITER ()
 
void Write (const wxString &aFilename)
 Generates and writes the netlist to a given path.
 

Private Member Functions

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

Private Attributes

BOARDm_pcb
 
wxWindow * m_parent
 

Detailed Description

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

Definition at line 53 of file export_d356.h.

Constructor & Destructor Documentation

◆ IPC356D_WRITER()

IPC356D_WRITER::IPC356D_WRITER ( BOARD aPcb,
wxWindow *  aParent = nullptr 
)
inline

Constructs an IPC-356D file writer.

Parameters
aPcbis the board to extract a netlist from
aParentwill be used as the parent for any warning dialogs

Definition at line 61 of file export_d356.h.

◆ ~IPC356D_WRITER()

virtual IPC356D_WRITER::~IPC356D_WRITER ( )
inlinevirtual

Definition at line 65 of file export_d356.h.

Member Function Documentation

◆ Write()

void 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

Definition at line 350 of file export_d356.cpp.

References build_pad_testpoints(), build_via_testpoints(), DisplayErrorMessage(), m_parent, m_pcb, and write_D356_records().

Referenced by PCB_EDIT_FRAME::GenD356File().

◆ write_D356_records()

Member Data Documentation

◆ m_parent

wxWindow* IPC356D_WRITER::m_parent
private

Definition at line 75 of file export_d356.h.

Referenced by Write().

◆ m_pcb

BOARD* IPC356D_WRITER::m_pcb
private

Definition at line 74 of file export_d356.h.

Referenced by Write().


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