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, 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 347 of file pcb_plot_params.cpp.

References m_boardFileVersion.

◆ PCB_PLOT_PARAMS_PARSER() [2/2]

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

Definition at line 354 of file pcb_plot_params.cpp.

References m_boardFileVersion.

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 524 of file pcb_plot_params.cpp.

References LSET::AllCuMask(), B_SilkS, DEFAULT, Edge_Cuts, F_SilkS, FIRST_FORMAT, From_UTF8(), gbrDefaultPrecision, INCH, LAST_FORMAT, 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_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_plotOnAllLayersSequence, 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, MM, NATIVE, parseBool(), parseDouble(), BASE_SET::ParseHex(), parseInt(), remapLegacyLayerLSET(), LSET::SeqStackupForPlotting(), PCB_PLOT_PARAMS::SetLayerSelection(), PCB_PLOT_PARAMS::SetPlotOnAllLayersSequence(), skipCurrent(), SVG_PRECISION_MAX, SVG_PRECISION_MIN, and T.

Referenced by PCB_PLOT_PARAMS::Parse().

◆ parseBool()

bool PCB_PLOT_PARAMS_PARSER::parseBool ( )
private

Definition at line 796 of file pcb_plot_params.cpp.

References T.

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 835 of file pcb_plot_params.cpp.

References DSNLEXER::parseDouble(), and T.

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 817 of file pcb_plot_params.cpp.

References T.

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 846 of file pcb_plot_params.cpp.

References T.

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(), PCB_PLOT_PARAMS_PARSER(), and PCB_PLOT_PARAMS_PARSER().


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