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

The parser for PCB_PLOT_PARAMS. More...

#include <pcb_plot_params_parser.h>

Inheritance diagram for PCB_PLOT_PARAMS_PARSER:

Public Member Functions

 PCB_PLOT_PARAMS_PARSER (LINE_READER *aReader)
 
 PCB_PLOT_PARAMS_PARSER (char *aLine, const wxString &aSource)
 
LINE_READERGetReader ()
 
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. More...
 
double parseDouble ()
 Parse a double precision floating point number. More...
 
void skipCurrent ()
 Skip the current token level. More...
 

Detailed Description

The parser for PCB_PLOT_PARAMS.

Definition at line 37 of file pcb_plot_params_parser.h.

Constructor & Destructor Documentation

◆ PCB_PLOT_PARAMS_PARSER() [1/2]

PCB_PLOT_PARAMS_PARSER::PCB_PLOT_PARAMS_PARSER ( LINE_READER aReader)

Definition at line 410 of file pcb_plot_params.cpp.

◆ PCB_PLOT_PARAMS_PARSER() [2/2]

PCB_PLOT_PARAMS_PARSER::PCB_PLOT_PARAMS_PARSER ( char *  aLine,
const wxString &  aSource 
)

Definition at line 416 of file pcb_plot_params.cpp.

Member Function Documentation

◆ GetReader()

LINE_READER * PCB_PLOT_PARAMS_PARSER::GetReader ( )
inline

Definition at line 43 of file pcb_plot_params_parser.h.

◆ Parse()

void PCB_PLOT_PARAMS_PARSER::Parse ( PCB_PLOT_PARAMS aPcbPlotParams)

Definition at line 422 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_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_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_plotDrawingSheet, PCB_PLOT_PARAMS::m_plotFPText, PCB_PLOT_PARAMS::m_plotInvisibleText, PCB_PLOT_PARAMS::m_plotOnAllLayersSelection, PCB_PLOT_PARAMS::m_plotReference, PCB_PLOT_PARAMS::m_plotValue, PCB_PLOT_PARAMS::m_plotViaOnMaskLayer, PCB_PLOT_PARAMS::m_scaleSelection, 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(), PCB_PLOT_PARAMS::SetPlotMode(), SKETCH, skipCurrent(), SVG_PRECISION_MAX, and SVG_PRECISION_MIN.

Referenced by PCB_PLOT_PARAMS::Parse().

◆ parseBool()

bool PCB_PLOT_PARAMS_PARSER::parseBool ( )
private

Definition at line 661 of file pcb_plot_params.cpp.

Referenced by Parse().

◆ parseDouble()

double PCB_PLOT_PARAMS_PARSER::parseDouble ( )
private

Parse a double precision floating point number.

Returns
the parsed double.

Definition at line 700 of file pcb_plot_params.cpp.

References DSNLEXER::parseDouble().

Referenced by Parse().

◆ parseInt()

int PCB_PLOT_PARAMS_PARSER::parseInt ( int  aMin,
int  aMax 
)
private

Parse an integer and constrains it between two values.

Parameters
aMinis the smallest return value.
aMaxis the largest return value.
Returns
the parsed integer.

Definition at line 682 of file pcb_plot_params.cpp.

Referenced by Parse().

◆ skipCurrent()

void PCB_PLOT_PARAMS_PARSER::skipCurrent ( )
private

Skip the current token level.

Search for the RIGHT parenthesis which closes the current description.

Definition at line 711 of file pcb_plot_params.cpp.

Referenced by Parse().


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