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

Runs a BOARD_PARSER against a filename or stream and reports results. More...

Public Member Functions

 PCB_PARSE_RUNNER (PCB_IO_MGR::PCB_FILE_T aPluginType, bool aVerbose)
 
bool Parse (std::istream &aStream)
 
bool Parse (const wxString &aFilename)
 

Private Member Functions

bool doParse (BOARD_PARSER &aParser)
 

Private Attributes

PCB_IO_MGR::PCB_FILE_T m_pluginType
 
bool m_verbose
 

Detailed Description

Runs a BOARD_PARSER against a filename or stream and reports results.

Definition at line 163 of file pcb_parser_tool.cpp.

Constructor & Destructor Documentation

◆ PCB_PARSE_RUNNER()

PCB_PARSE_RUNNER::PCB_PARSE_RUNNER ( PCB_IO_MGR::PCB_FILE_T aPluginType,
bool aVerbose )
inline

Definition at line 166 of file pcb_parser_tool.cpp.

References m_pluginType, and m_verbose.

Member Function Documentation

◆ doParse()

bool PCB_PARSE_RUNNER::doParse ( BOARD_PARSER & aParser)
inlineprivate

Definition at line 209 of file pcb_parser_tool.cpp.

References m_verbose, BOARD_PARSER::Parse(), PROF_TIMER::SinceStart(), and IO_ERROR::What().

Referenced by Parse(), and Parse().

◆ Parse() [1/2]

bool PCB_PARSE_RUNNER::Parse ( const wxString & aFilename)
inline

Definition at line 202 of file pcb_parser_tool.cpp.

References doParse(), and m_pluginType.

◆ Parse() [2/2]

bool PCB_PARSE_RUNNER::Parse ( std::istream & aStream)
inline

Member Data Documentation

◆ m_pluginType

PCB_IO_MGR::PCB_FILE_T PCB_PARSE_RUNNER::m_pluginType
private

Definition at line 236 of file pcb_parser_tool.cpp.

Referenced by Parse(), Parse(), and PCB_PARSE_RUNNER().

◆ m_verbose

bool PCB_PARSE_RUNNER::m_verbose
private

Definition at line 237 of file pcb_parser_tool.cpp.

Referenced by doParse(), and PCB_PARSE_RUNNER().


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