KiCad PCB EDA Suite
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
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, int aBoardFileVersion)
 
 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.
 
double parseDouble ()
 Parse a double precision floating point number.
 
void skipCurrent ()
 Skip the current token level.
 

Private Attributes

int m_boardFileVersion
 

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,
int  aBoardFileVersion 
)

Definition at line 405 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 412 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 582 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, LEGACY_PCB_LAYER_ID_COUNT, PCB_PLOT_PARAMS::m_A4Output, PCB_PLOT_PARAMS::m_blackAndWhite, m_boardFileVersion, 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_PDFBackFPPropertyPopups, PCB_PLOT_PARAMS::m_PDFFrontFPPropertyPopups, PCB_PLOT_PARAMS::m_PDFMetadata, PCB_PLOT_PARAMS::m_PDFSingle, PCB_PLOT_PARAMS::m_plotDrawingSheet, 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(), BASE_SET::ParseHex(), parseInt(), remapLegacyLayerLSET(), BASE_SET::set(), PCB_PLOT_PARAMS::SetLayerSelection(), PCB_PLOT_PARAMS::SetPlotMode(), PCB_PLOT_PARAMS::SetPlotOnAllLayersSelection(), 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 863 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 902 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 884 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 913 of file pcb_plot_params.cpp.

Referenced by Parse().

Member Data Documentation

◆ m_boardFileVersion

int PCB_PLOT_PARAMS_PARSER::m_boardFileVersion
private

Definition at line 73 of file pcb_plot_params_parser.h.

Referenced by Parse().


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