KiCad PCB EDA Suite
|
The parser for PCB_PLOT_PARAMS. More...
#include <pcb_plot_params_parser.h>
Public Member Functions | |
PCB_PLOT_PARAMS_PARSER (LINE_READER *aReader) | |
PCB_PLOT_PARAMS_PARSER (char *aLine, const wxString &aSource) | |
LINE_READER * | GetReader () |
void | Parse (PCB_PLOT_PARAMS *aPcbPlotParams) |
Private Member Functions | |
bool | parseBool () |
int | parseInt (int aMin, int aMax) |
Parse an integer and constrains it between two values. | |
double | parseDouble () |
Parse a double precision floating point number. | |
void | skipCurrent () |
Skip the current token level. | |
The parser for PCB_PLOT_PARAMS.
Definition at line 37 of file pcb_plot_params_parser.h.
PCB_PLOT_PARAMS_PARSER::PCB_PLOT_PARAMS_PARSER | ( | LINE_READER * | aReader | ) |
Definition at line 406 of file pcb_plot_params.cpp.
PCB_PLOT_PARAMS_PARSER::PCB_PLOT_PARAMS_PARSER | ( | char * | aLine, |
const wxString & | aSource | ||
) |
Definition at line 412 of file pcb_plot_params.cpp.
|
inline |
Definition at line 43 of file pcb_plot_params_parser.h.
void PCB_PLOT_PARAMS_PARSER::Parse | ( | PCB_PLOT_PARAMS * | aPcbPlotParams | ) |
Definition at line 418 of file pcb_plot_params.cpp.
References LSET::AllCuMask(), B_SilkS, Edge_Cuts, F_SilkS, FILLED, From_UTF8(), gbrDefaultPrecision, HPGL_PEN_DIAMETER_MAX, HPGL_PEN_NUMBER_MAX, HPGL_PEN_NUMBER_MIN, HPGL_PEN_SPEED_MAX, HPGL_PEN_SPEED_MIN, PCB_PLOT_PARAMS::m_A4Output, PCB_PLOT_PARAMS::m_createGerberJobFile, PCB_PLOT_PARAMS::m_crossoutDNPFPsOnFabLayers, PCB_PLOT_PARAMS::m_dashedLineDashRatio, PCB_PLOT_PARAMS::m_dashedLineGapRatio, PCB_PLOT_PARAMS::m_drillMarks, PCB_PLOT_PARAMS::m_DXFPolygonMode, PCB_PLOT_PARAMS::m_DXFUnits, PCB_PLOT_PARAMS::m_format, PCB_PLOT_PARAMS::m_gerberDisableApertMacros, PCB_PLOT_PARAMS::m_gerberPrecision, PCB_PLOT_PARAMS::m_hideDNPFPsOnFabLayers, PCB_PLOT_PARAMS::m_HPGLPenDiam, PCB_PLOT_PARAMS::m_HPGLPenNum, PCB_PLOT_PARAMS::m_HPGLPenSpeed, PCB_PLOT_PARAMS::m_includeGerberNetlistInfo, PCB_PLOT_PARAMS::m_layerSelection, PCB_PLOT_PARAMS::m_mirror, PCB_PLOT_PARAMS::m_negative, PCB_PLOT_PARAMS::m_outputDirectory, PCB_PLOT_PARAMS::m_PDFFrontFPPropertyPopups, PCB_PLOT_PARAMS::m_PDFMetadata, PCB_PLOT_PARAMS::m_plotDrawingSheet, PCB_PLOT_PARAMS::m_plotInvisibleText, PCB_PLOT_PARAMS::m_plotOnAllLayersSelection, PCB_PLOT_PARAMS::m_plotPadNumbers, PCB_PLOT_PARAMS::m_plotViaOnMaskLayer, PCB_PLOT_PARAMS::m_scaleSelection, PCB_PLOT_PARAMS::m_sketchDNPFPsOnFabLayers, PCB_PLOT_PARAMS::m_sketchPadsOnFabLayers, PCB_PLOT_PARAMS::m_subtractMaskFromSilk, PCB_PLOT_PARAMS::m_svgPrecision, PCB_PLOT_PARAMS::m_textMode, PCB_PLOT_PARAMS::m_useAuxOrigin, PCB_PLOT_PARAMS::m_useGerberProtelExtensions, PCB_PLOT_PARAMS::m_useGerberX2format, parseBool(), parseDouble(), LSET::ParseHex(), parseInt(), BASE_SET::set(), PCB_PLOT_PARAMS::SetPlotMode(), SKETCH, skipCurrent(), SVG_PRECISION_MAX, and SVG_PRECISION_MIN.
Referenced by PCB_PLOT_PARAMS::Parse().
|
private |
Definition at line 665 of file pcb_plot_params.cpp.
Referenced by Parse().
|
private |
Parse a double precision floating point number.
Definition at line 704 of file pcb_plot_params.cpp.
References DSNLEXER::parseDouble().
Referenced by Parse().
|
private |
Parse an integer and constrains it between two values.
aMin | is the smallest return value. |
aMax | is the largest return value. |
Definition at line 686 of file pcb_plot_params.cpp.
Referenced by Parse().
|
private |
Skip the current token level.
Search for the RIGHT parenthesis which closes the current description.
Definition at line 715 of file pcb_plot_params.cpp.
Referenced by Parse().