KiCad PCB EDA Suite
|
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 | build_pad_testpoints (BOARD *aPcb, std::vector< D356_RECORD > &aRecords) |
Private Attributes | |
BOARD * | m_pcb |
bool | m_doNotExportUnconnectedPads |
Wrapper to expose an API for writing IPC-D356 files.
Definition at line 53 of file export_d356.h.
|
inline |
Constructs an IPC-356D file writer.
aPcb | is the board to extract a netlist from |
aParent | will be used as the parent for any warning dialogs |
Definition at line 61 of file export_d356.h.
|
inlinevirtual |
Definition at line 66 of file export_d356.h.
|
private |
Definition at line 101 of file export_d356.cpp.
References D356_RECORD::access, B_Cu, B_Mask, compute_pad_access_code(), D356_RECORD::drill, F_Cu, F_Mask, BOARD::Footprints(), BOARD_DESIGN_SETTINGS::GetAuxOrigin(), BOARD::GetDesignSettings(), D356_RECORD::hole, m_doNotExportUnconnectedPads, D356_RECORD::mechanical, D356_RECORD::midpoint, D356_RECORD::netname, pad, D356_RECORD::pin, D356_RECORD::refdes, D356_RECORD::rotation, D356_RECORD::smd, D356_RECORD::soldermask, NETINFO_LIST::UNCONNECTED, VECTOR2< T >::x, D356_RECORD::x_location, D356_RECORD::x_size, VECTOR2< T >::y, D356_RECORD::y_location, and D356_RECORD::y_size.
Referenced by Write().
|
inline |
Sets whether unconnected pads should be exported.
aDoNotExportUnconnectedPads | if true, unconnected pads will not be exported |
Definition at line 79 of file export_d356.h.
References m_doNotExportUnconnectedPads.
Referenced by BOARD_EDITOR_CONTROL::GenD356File().
bool IPC356D_WRITER::Write | ( | const wxString & | aFilename | ) |
Generates and writes the netlist to a given path.
aFilename | is the full path and name of the output file |
Definition at line 360 of file export_d356.cpp.
References build_pad_testpoints(), build_via_testpoints(), m_pcb, and write_D356_records().
Referenced by BOARD_EDITOR_CONTROL::GenD356File(), and PCBNEW_JOBS_HANDLER::JobExportIpcD356().
|
private |
Writes a list of records to the given output stream.
Definition at line 289 of file export_d356.cpp.
References D356_RECORD::access, D356_RECORD::drill, D356_RECORD::hole, intern_new_d356_netname(), iu_to_d356(), D356_RECORD::mechanical, D356_RECORD::midpoint, D356_RECORD::netname, D356_RECORD::pin, D356_RECORD::refdes, D356_RECORD::rotation, D356_RECORD::smd, D356_RECORD::soldermask, TO_UTF8, D356_RECORD::x_location, D356_RECORD::x_size, D356_RECORD::y_location, and D356_RECORD::y_size.
Referenced by Write().
|
private |
Definition at line 92 of file export_d356.h.
Referenced by build_pad_testpoints(), and SetDoNotExportUnconnectedPads().
|
private |
Definition at line 85 of file export_d356.h.
Referenced by Write().