| 
    KiCad PCB EDA Suite
    
   | 
 
#include <command_pcb_drc.h>
  
Public Member Functions | |
| PCB_DRC_COMMAND () | |
| int | Perform (KIWAY &aKiway) | 
| Entry point to processing commands from args and doing work.   | |
| argparse::ArgumentParser & | GetArgParser () | 
| const std::string & | GetName () const | 
| void | PrintHelp () | 
Protected Member Functions | |
| int | doPerform (KIWAY &aKiway) override | 
| The internal handler that should be overloaded to implement command specific processing and work.   | |
| void | addCommonArgs (bool aInput, bool aOutput, bool aInputCanBeDir, bool aOutputIsDir) | 
| Set up the most common of args used across cli.   | |
| void | addDrawingSheetArg () | 
| Set up the drawing sheet arg used by many of the export commands.   | |
| void | addDefineArg () | 
| Set up the drawing sheet arg used by many of the export commands.   | |
| void | addVariantsArg () | 
| Set up the list of variants to output arguement.   | |
Protected Attributes | |
| std::string | m_name | 
| Name of this command that is exported and used in the cli.   | |
| argparse::ArgumentParser | m_argParser | 
| bool | m_hasInputArg | 
| Whether or not the input arg was added for parsing.   | |
| bool | m_hasOutputArg | 
| Whether or not the output arg was added for parsing.   | |
| bool | m_hasDrawingSheetArg | 
| Whether or not the input arg was added for parsing.   | |
| bool | m_hasDefineArg | 
| Whether or not the input arg was added for parsing.   | |
| bool | m_outputArgExpectsDir | 
| Whether or not the output arg is expecting a directory.   | |
| wxString | m_argInput | 
| Value of the common input arg if configured.   | |
| wxString | m_argOutput | 
| Value of the output arg if configured.   | |
| wxString | m_argDrawingSheet | 
| Value of the drawing sheet arg if configured.   | |
| std::map< wxString, wxString > | m_argDefineVars | 
| Value of the drawing sheet arg if configured.   | |
| bool | m_hasVariantsArg | 
| Whether or not the input arguement for variant names was added for parsing.   | |
| std::set< wxString > | m_argVariantNames | 
| A set of variant names to output.   | |
Definition at line 28 of file command_pcb_drc.h.
| CLI::PCB_DRC_COMMAND::PCB_DRC_COMMAND | ( | ) | 
Definition at line 44 of file command_pcb_drc.cpp.
References _, CLI::COMMAND::addCommonArgs(), CLI::COMMAND::addDefineArg(), ARG_ALL_TRACK_ERRORS, ARG_EXIT_CODE_VIOLATIONS, ARG_FORMAT, ARG_PARITY, ARG_SAVE_BOARD, ARG_SEVERITY_ALL, ARG_SEVERITY_ERROR, ARG_SEVERITY_EXCLUSIONS, ARG_SEVERITY_WARNING, ARG_UNITS, ARG_ZONE_FILL, CLI::COMMAND::COMMAND(), CLI::COMMAND::m_argParser, and UTF8STDSTR.
      
  | 
  protectedinherited | 
Set up the most common of args used across cli.
| aInput | Configures the input arg | 
| aOutput | Configures the output arg | 
| aInputCanBeDir | Configures whether the input arg description will be for either a file or directory | 
| aOutputIsDir | Configures whether the output arg description will be for a file or directory | 
Definition at line 125 of file command.cpp.
References _, ARG_INPUT, ARG_OUTPUT, m_argParser, m_hasInputArg, m_hasOutputArg, m_outputArgExpectsDir, and UTF8STDSTR.
Referenced by CLI::JOBSET_RUN_COMMAND::JOBSET_RUN_COMMAND(), CLI::PCB_DRC_COMMAND::PCB_DRC_COMMAND(), CLI::PCB_EXPORT_3D_COMMAND::PCB_EXPORT_3D_COMMAND(), CLI::PCB_EXPORT_BASE_COMMAND::PCB_EXPORT_BASE_COMMAND(), CLI::PCB_RENDER_COMMAND::PCB_RENDER_COMMAND(), CLI::PCB_UPGRADE_COMMAND::PCB_UPGRADE_COMMAND(), CLI::SCH_ERC_COMMAND::SCH_ERC_COMMAND(), CLI::SCH_EXPORT_BOM_COMMAND::SCH_EXPORT_BOM_COMMAND(), CLI::SCH_EXPORT_NETLIST_COMMAND::SCH_EXPORT_NETLIST_COMMAND(), CLI::SCH_EXPORT_PLOT_COMMAND::SCH_EXPORT_PLOT_COMMAND(), CLI::SCH_EXPORT_PYTHONBOM_COMMAND::SCH_EXPORT_PYTHONBOM_COMMAND(), CLI::SCH_UPGRADE_COMMAND::SCH_UPGRADE_COMMAND(), CLI::SYM_EXPORT_SVG_COMMAND::SYM_EXPORT_SVG_COMMAND(), and CLI::SYM_UPGRADE_COMMAND::SYM_UPGRADE_COMMAND().
      
  | 
  protectedinherited | 
Set up the drawing sheet arg used by many of the export commands.
Definition at line 178 of file command.cpp.
References _, ARG_DEFINE_VAR_LONG, ARG_DEFINE_VAR_SHORT, m_argParser, m_hasDefineArg, and UTF8STDSTR.
Referenced by CLI::FP_EXPORT_SVG_COMMAND::FP_EXPORT_SVG_COMMAND(), CLI::PCB_DRC_COMMAND::PCB_DRC_COMMAND(), CLI::PCB_EXPORT_3D_COMMAND::PCB_EXPORT_3D_COMMAND(), CLI::PCB_EXPORT_DXF_COMMAND::PCB_EXPORT_DXF_COMMAND(), CLI::PCB_EXPORT_GENCAD_COMMAND::PCB_EXPORT_GENCAD_COMMAND(), CLI::PCB_EXPORT_GERBER_COMMAND::PCB_EXPORT_GERBER_COMMAND(), CLI::PCB_EXPORT_IPC2581_COMMAND::PCB_EXPORT_IPC2581_COMMAND(), CLI::PCB_EXPORT_ODB_COMMAND::PCB_EXPORT_ODB_COMMAND(), CLI::PCB_EXPORT_PDF_COMMAND::PCB_EXPORT_PDF_COMMAND(), CLI::PCB_EXPORT_PS_COMMAND::PCB_EXPORT_PS_COMMAND(), CLI::PCB_EXPORT_SVG_COMMAND::PCB_EXPORT_SVG_COMMAND(), CLI::PCB_RENDER_COMMAND::PCB_RENDER_COMMAND(), CLI::SCH_ERC_COMMAND::SCH_ERC_COMMAND(), and CLI::SCH_EXPORT_PLOT_COMMAND::SCH_EXPORT_PLOT_COMMAND().
      
  | 
  protectedinherited | 
Set up the drawing sheet arg used by many of the export commands.
Definition at line 166 of file command.cpp.
References _, ARG_DRAWING_SHEET, m_argParser, m_hasDrawingSheetArg, and UTF8STDSTR.
Referenced by CLI::PCB_EXPORT_DXF_COMMAND::PCB_EXPORT_DXF_COMMAND(), CLI::PCB_EXPORT_GERBER_COMMAND::PCB_EXPORT_GERBER_COMMAND(), CLI::PCB_EXPORT_IPC2581_COMMAND::PCB_EXPORT_IPC2581_COMMAND(), CLI::PCB_EXPORT_ODB_COMMAND::PCB_EXPORT_ODB_COMMAND(), CLI::PCB_EXPORT_PDF_COMMAND::PCB_EXPORT_PDF_COMMAND(), CLI::PCB_EXPORT_PS_COMMAND::PCB_EXPORT_PS_COMMAND(), CLI::PCB_EXPORT_SVG_COMMAND::PCB_EXPORT_SVG_COMMAND(), and CLI::SCH_EXPORT_PLOT_COMMAND::SCH_EXPORT_PLOT_COMMAND().
      
  | 
  protectedinherited | 
Set up the list of variants to output arguement.
Definition at line 193 of file command.cpp.
References _, ARG_VARIANTS, m_argParser, m_hasVariantsArg, and UTF8STDSTR.
      
  | 
  overrideprotectedvirtual | 
The internal handler that should be overloaded to implement command specific processing and work.
If not overloaded, the command will simply emit the help options by default
Reimplemented from CLI::COMMAND.
Definition at line 104 of file command_pcb_drc.cpp.
References _, ARG_ALL_TRACK_ERRORS, ARG_EXIT_CODE_VIOLATIONS, ARG_FORMAT, ARG_PARITY, ARG_SAVE_BOARD, ARG_SEVERITY_ALL, ARG_SEVERITY_ERROR, ARG_SEVERITY_EXCLUSIONS, ARG_SEVERITY_WARNING, ARG_UNITS, ARG_ZONE_FILL, CLI::EXIT_CODES::ERR_ARGS, KIWAY::FACE_PCB, From_UTF8(), JOB_RC::INCH, JOB_RC::JSON, CLI::COMMAND::m_argDefineVars, CLI::COMMAND::m_argInput, CLI::COMMAND::m_argOutput, CLI::COMMAND::m_argParser, JOB_RC::MILS, JOB_RC::MM, KIWAY::ProcessJob(), JOB_RC::REPORT, RPT_SEVERITY_ERROR, RPT_SEVERITY_EXCLUSION, and RPT_SEVERITY_WARNING.
      
  | 
  inlineinherited | 
Definition at line 60 of file command.h.
References m_argParser.
Referenced by recurseArgParserBuild(), and recurseArgParserSubCommandUsed().
      
  | 
  inlineinherited | 
Definition at line 61 of file command.h.
References m_name.
Referenced by recurseArgParserSubCommandUsed().
      
  | 
  inherited | 
Entry point to processing commands from args and doing work.
Definition at line 56 of file command.cpp.
References ARG_DEFINE_VAR_LONG, ARG_DRAWING_SHEET, ARG_HELP, ARG_INPUT, ARG_OUTPUT, ARG_VARIANTS, doPerform(), CLI::EXIT_CODES::ERR_ARGS, From_UTF8(), m_argDefineVars, m_argDrawingSheet, m_argInput, m_argOutput, m_argParser, m_argVariantNames, m_hasDefineArg, m_hasDrawingSheetArg, m_hasInputArg, m_hasOutputArg, m_hasVariantsArg, PrintHelp(), and wxStringSplit().
      
  | 
  inherited | 
Definition at line 48 of file command.cpp.
References From_UTF8(), and m_argParser.
Referenced by doPerform(), and Perform().
      
  | 
  protectedinherited | 
Value of the drawing sheet arg if configured.
Definition at line 151 of file command.h.
Referenced by CLI::FP_EXPORT_SVG_COMMAND::doPerform(), CLI::PCB_DRC_COMMAND::doPerform(), CLI::PCB_EXPORT_3D_COMMAND::doPerform(), CLI::PCB_EXPORT_DXF_COMMAND::doPerform(), CLI::PCB_EXPORT_GENCAD_COMMAND::doPerform(), CLI::PCB_EXPORT_IPC2581_COMMAND::doPerform(), CLI::PCB_EXPORT_ODB_COMMAND::doPerform(), CLI::PCB_EXPORT_PDF_COMMAND::doPerform(), CLI::PCB_EXPORT_PS_COMMAND::doPerform(), CLI::PCB_EXPORT_SVG_COMMAND::doPerform(), CLI::PCB_RENDER_COMMAND::doPerform(), CLI::SCH_ERC_COMMAND::doPerform(), CLI::SCH_EXPORT_PLOT_COMMAND::doPerform(), Perform(), and CLI::PCB_EXPORT_GERBER_COMMAND::populateJob().
      
  | 
  protectedinherited | 
Value of the drawing sheet arg if configured.
Definition at line 146 of file command.h.
Referenced by CLI::PCB_EXPORT_DXF_COMMAND::doPerform(), CLI::PCB_EXPORT_IPC2581_COMMAND::doPerform(), CLI::PCB_EXPORT_ODB_COMMAND::doPerform(), CLI::PCB_EXPORT_PDF_COMMAND::doPerform(), CLI::PCB_EXPORT_PS_COMMAND::doPerform(), CLI::PCB_EXPORT_SVG_COMMAND::doPerform(), CLI::SCH_EXPORT_PLOT_COMMAND::doPerform(), Perform(), and CLI::PCB_EXPORT_GERBER_COMMAND::populateJob().
      
  | 
  protectedinherited | 
Value of the common input arg if configured.
Definition at line 136 of file command.h.
Referenced by CLI::FP_EXPORT_SVG_COMMAND::doPerform(), CLI::FP_UPGRADE_COMMAND::doPerform(), CLI::JOBSET_RUN_COMMAND::doPerform(), CLI::PCB_DRC_COMMAND::doPerform(), CLI::PCB_EXPORT_3D_COMMAND::doPerform(), CLI::PCB_EXPORT_DRILL_COMMAND::doPerform(), CLI::PCB_EXPORT_DXF_COMMAND::doPerform(), CLI::PCB_EXPORT_GENCAD_COMMAND::doPerform(), CLI::PCB_EXPORT_IPC2581_COMMAND::doPerform(), CLI::PCB_EXPORT_IPCD356_COMMAND::doPerform(), CLI::PCB_EXPORT_ODB_COMMAND::doPerform(), CLI::PCB_EXPORT_PDF_COMMAND::doPerform(), CLI::PCB_EXPORT_POS_COMMAND::doPerform(), CLI::PCB_EXPORT_PS_COMMAND::doPerform(), CLI::PCB_EXPORT_STATS_COMMAND::doPerform(), CLI::PCB_EXPORT_SVG_COMMAND::doPerform(), CLI::PCB_RENDER_COMMAND::doPerform(), CLI::PCB_UPGRADE_COMMAND::doPerform(), CLI::SCH_ERC_COMMAND::doPerform(), CLI::SCH_EXPORT_BOM_COMMAND::doPerform(), CLI::SCH_EXPORT_NETLIST_COMMAND::doPerform(), CLI::SCH_EXPORT_PLOT_COMMAND::doPerform(), CLI::SCH_EXPORT_PYTHONBOM_COMMAND::doPerform(), CLI::SCH_UPGRADE_COMMAND::doPerform(), CLI::SYM_EXPORT_SVG_COMMAND::doPerform(), CLI::SYM_UPGRADE_COMMAND::doPerform(), Perform(), and CLI::PCB_EXPORT_GERBER_COMMAND::populateJob().
      
  | 
  protectedinherited | 
Value of the output arg if configured.
Definition at line 141 of file command.h.
Referenced by CLI::FP_EXPORT_SVG_COMMAND::doPerform(), CLI::FP_UPGRADE_COMMAND::doPerform(), CLI::PCB_DRC_COMMAND::doPerform(), CLI::PCB_EXPORT_3D_COMMAND::doPerform(), CLI::PCB_EXPORT_DRILL_COMMAND::doPerform(), CLI::PCB_EXPORT_DXF_COMMAND::doPerform(), CLI::PCB_EXPORT_GENCAD_COMMAND::doPerform(), CLI::PCB_EXPORT_IPC2581_COMMAND::doPerform(), CLI::PCB_EXPORT_IPCD356_COMMAND::doPerform(), CLI::PCB_EXPORT_ODB_COMMAND::doPerform(), CLI::PCB_EXPORT_PDF_COMMAND::doPerform(), CLI::PCB_EXPORT_POS_COMMAND::doPerform(), CLI::PCB_EXPORT_PS_COMMAND::doPerform(), CLI::PCB_EXPORT_STATS_COMMAND::doPerform(), CLI::PCB_EXPORT_SVG_COMMAND::doPerform(), CLI::PCB_RENDER_COMMAND::doPerform(), CLI::SCH_ERC_COMMAND::doPerform(), CLI::SCH_EXPORT_BOM_COMMAND::doPerform(), CLI::SCH_EXPORT_NETLIST_COMMAND::doPerform(), CLI::SCH_EXPORT_PLOT_COMMAND::doPerform(), CLI::SCH_EXPORT_PYTHONBOM_COMMAND::doPerform(), CLI::SYM_EXPORT_SVG_COMMAND::doPerform(), CLI::SYM_UPGRADE_COMMAND::doPerform(), Perform(), and CLI::PCB_EXPORT_GERBER_COMMAND::populateJob().
      
  | 
  protectedinherited | 
Definition at line 106 of file command.h.
Referenced by addCommonArgs(), CLI::PCB_EXPORT_BASE_COMMAND::addCommonLayersArg(), addDefineArg(), addDrawingSheetArg(), CLI::PCB_EXPORT_BASE_COMMAND::addLayerArg(), addVariantsArg(), COMMAND(), CLI::FP_EXPORT_SVG_COMMAND::doPerform(), CLI::FP_UPGRADE_COMMAND::doPerform(), CLI::JOBSET_RUN_COMMAND::doPerform(), CLI::PCB_DRC_COMMAND::doPerform(), CLI::PCB_EXPORT_3D_COMMAND::doPerform(), CLI::PCB_EXPORT_DRILL_COMMAND::doPerform(), CLI::PCB_EXPORT_DXF_COMMAND::doPerform(), CLI::PCB_EXPORT_GENCAD_COMMAND::doPerform(), CLI::PCB_EXPORT_GERBERS_COMMAND::doPerform(), CLI::PCB_EXPORT_IPC2581_COMMAND::doPerform(), CLI::PCB_EXPORT_ODB_COMMAND::doPerform(), CLI::PCB_EXPORT_PDF_COMMAND::doPerform(), CLI::PCB_EXPORT_POS_COMMAND::doPerform(), CLI::PCB_EXPORT_PS_COMMAND::doPerform(), CLI::PCB_EXPORT_STATS_COMMAND::doPerform(), CLI::PCB_EXPORT_SVG_COMMAND::doPerform(), CLI::PCB_RENDER_COMMAND::doPerform(), CLI::PCB_UPGRADE_COMMAND::doPerform(), CLI::SCH_ERC_COMMAND::doPerform(), CLI::SCH_EXPORT_BOM_COMMAND::doPerform(), CLI::SCH_EXPORT_NETLIST_COMMAND::doPerform(), CLI::SCH_EXPORT_PLOT_COMMAND::doPerform(), CLI::SCH_UPGRADE_COMMAND::doPerform(), CLI::SYM_EXPORT_SVG_COMMAND::doPerform(), CLI::SYM_UPGRADE_COMMAND::doPerform(), CLI::VERSION_COMMAND::doPerform(), CLI::FP_COMMAND::FP_COMMAND(), CLI::FP_EXPORT_COMMAND::FP_EXPORT_COMMAND(), CLI::FP_EXPORT_SVG_COMMAND::FP_EXPORT_SVG_COMMAND(), CLI::FP_UPGRADE_COMMAND::FP_UPGRADE_COMMAND(), GetArgParser(), CLI::JOBSET_COMMAND::JOBSET_COMMAND(), CLI::JOBSET_RUN_COMMAND::JOBSET_RUN_COMMAND(), CLI::PCB_COMMAND::PCB_COMMAND(), CLI::PCB_DRC_COMMAND::PCB_DRC_COMMAND(), CLI::PCB_EXPORT_3D_COMMAND::PCB_EXPORT_3D_COMMAND(), CLI::PCB_EXPORT_COMMAND::PCB_EXPORT_COMMAND(), CLI::PCB_EXPORT_DRILL_COMMAND::PCB_EXPORT_DRILL_COMMAND(), CLI::PCB_EXPORT_DXF_COMMAND::PCB_EXPORT_DXF_COMMAND(), CLI::PCB_EXPORT_GENCAD_COMMAND::PCB_EXPORT_GENCAD_COMMAND(), CLI::PCB_EXPORT_GERBER_COMMAND::PCB_EXPORT_GERBER_COMMAND(), CLI::PCB_EXPORT_GERBERS_COMMAND::PCB_EXPORT_GERBERS_COMMAND(), CLI::PCB_EXPORT_HPGL_COMMAND::PCB_EXPORT_HPGL_COMMAND(), CLI::PCB_EXPORT_IPC2581_COMMAND::PCB_EXPORT_IPC2581_COMMAND(), CLI::PCB_EXPORT_IPCD356_COMMAND::PCB_EXPORT_IPCD356_COMMAND(), CLI::PCB_EXPORT_ODB_COMMAND::PCB_EXPORT_ODB_COMMAND(), CLI::PCB_EXPORT_PDF_COMMAND::PCB_EXPORT_PDF_COMMAND(), CLI::PCB_EXPORT_POS_COMMAND::PCB_EXPORT_POS_COMMAND(), CLI::PCB_EXPORT_PS_COMMAND::PCB_EXPORT_PS_COMMAND(), CLI::PCB_EXPORT_STATS_COMMAND::PCB_EXPORT_STATS_COMMAND(), CLI::PCB_EXPORT_SVG_COMMAND::PCB_EXPORT_SVG_COMMAND(), CLI::PCB_RENDER_COMMAND::PCB_RENDER_COMMAND(), CLI::PCB_UPGRADE_COMMAND::PCB_UPGRADE_COMMAND(), Perform(), CLI::PCB_EXPORT_GERBER_COMMAND::populateJob(), PrintHelp(), CLI::SCH_COMMAND::SCH_COMMAND(), CLI::SCH_ERC_COMMAND::SCH_ERC_COMMAND(), CLI::SCH_EXPORT_BOM_COMMAND::SCH_EXPORT_BOM_COMMAND(), CLI::SCH_EXPORT_COMMAND::SCH_EXPORT_COMMAND(), CLI::SCH_EXPORT_NETLIST_COMMAND::SCH_EXPORT_NETLIST_COMMAND(), CLI::SCH_EXPORT_PLOT_COMMAND::SCH_EXPORT_PLOT_COMMAND(), CLI::SCH_EXPORT_PYTHONBOM_COMMAND::SCH_EXPORT_PYTHONBOM_COMMAND(), CLI::SCH_UPGRADE_COMMAND::SCH_UPGRADE_COMMAND(), CLI::SYM_COMMAND::SYM_COMMAND(), CLI::SYM_EXPORT_COMMAND::SYM_EXPORT_COMMAND(), CLI::SYM_EXPORT_SVG_COMMAND::SYM_EXPORT_SVG_COMMAND(), CLI::SYM_UPGRADE_COMMAND::SYM_UPGRADE_COMMAND(), and CLI::VERSION_COMMAND::VERSION_COMMAND().
      
  | 
  protectedinherited | 
      
  | 
  protectedinherited | 
Whether or not the input arg was added for parsing.
Definition at line 126 of file command.h.
Referenced by addDefineArg(), COMMAND(), and Perform().
      
  | 
  protectedinherited | 
Whether or not the input arg was added for parsing.
Definition at line 121 of file command.h.
Referenced by addDrawingSheetArg(), COMMAND(), and Perform().
      
  | 
  protectedinherited | 
Whether or not the input arg was added for parsing.
Definition at line 111 of file command.h.
Referenced by addCommonArgs(), COMMAND(), and Perform().
      
  | 
  protectedinherited | 
Whether or not the output arg was added for parsing.
Definition at line 116 of file command.h.
Referenced by addCommonArgs(), COMMAND(), and Perform().
      
  | 
  protectedinherited | 
Whether or not the input arguement for variant names was added for parsing.
Definition at line 156 of file command.h.
Referenced by addVariantsArg(), COMMAND(), and Perform().
      
  | 
  protectedinherited | 
      
  | 
  protectedinherited | 
Whether or not the output arg is expecting a directory.
Definition at line 131 of file command.h.
Referenced by addCommonArgs(), and COMMAND().