KiCad PCB EDA Suite
Loading...
Searching...
No Matches
BOARD_PARSER Class Referenceabstract

Generic board parser - this makes no assumption about what the source data might be. More...

Inheritance diagram for BOARD_PARSER:
FILE_PARSER STREAM_PARSER ALLEGRO_BRD_STREAM_PARSER SEXPR_STREAM_PARSER

Public Member Functions

virtual ~BOARD_PARSER ()=default
 
virtual std::unique_ptr< BOARD_ITEMParse ()=0
 Actually perform the parsing and return a BOARD_ITEM if successful, or nullptr if not.
 

Detailed Description

Generic board parser - this makes no assumption about what the source data might be.

Definition at line 53 of file pcb_parser_tool.cpp.

Constructor & Destructor Documentation

◆ ~BOARD_PARSER()

virtual BOARD_PARSER::~BOARD_PARSER ( )
virtualdefault

Member Function Documentation

◆ Parse()

virtual std::unique_ptr< BOARD_ITEM > BOARD_PARSER::Parse ( )
pure virtual

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

Exceptions
IO_ERRORif there is a parse failure

Implemented in ALLEGRO_BRD_STREAM_PARSER, FILE_PARSER, and SEXPR_STREAM_PARSER.

Referenced by PCB_PARSE_RUNNER::doParse().


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