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

Provide the BOARD_PARSER interface wrapping a normal PCB_IO file-based plugin lookup. More...

Inheritance diagram for FILE_PARSER:
BOARD_PARSER

Public Member Functions

 FILE_PARSER (PCB_IO_MGR::PCB_FILE_T aFileType, const wxString &aFileName)
 
std::unique_ptr< BOARD_ITEMParse () override
 Actually perform the parsing and return a BOARD_ITEM if successful, or nullptr if not.
 

Private Attributes

PCB_IO_MGR::PCB_FILE_T m_fileType
 
wxString m_fileName
 

Detailed Description

Provide the BOARD_PARSER interface wrapping a normal PCB_IO file-based plugin lookup.

Definition at line 70 of file pcb_parser_tool.cpp.

Constructor & Destructor Documentation

◆ FILE_PARSER()

FILE_PARSER::FILE_PARSER ( PCB_IO_MGR::PCB_FILE_T aFileType,
const wxString & aFileName )
inline

Definition at line 73 of file pcb_parser_tool.cpp.

References m_fileName, and m_fileType.

Member Function Documentation

◆ Parse()

std::unique_ptr< BOARD_ITEM > FILE_PARSER::Parse ( )
inlineoverridevirtual

Actually perform the parsing and return a BOARD_ITEM if successful, or nullptr if not.

Exceptions
IO_ERRORif there is a parse failure

Implements BOARD_PARSER.

Definition at line 79 of file pcb_parser_tool.cpp.

References PCB_IO_MGR::Load(), m_fileName, and m_fileType.

Member Data Documentation

◆ m_fileName

wxString FILE_PARSER::m_fileName
private

Definition at line 87 of file pcb_parser_tool.cpp.

Referenced by FILE_PARSER(), and Parse().

◆ m_fileType

PCB_IO_MGR::PCB_FILE_T FILE_PARSER::m_fileType
private

Definition at line 86 of file pcb_parser_tool.cpp.

Referenced by FILE_PARSER(), and Parse().


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