|
KiCad PCB EDA Suite
|
Public Member Functions | |
| void | PrepareStream (std::istream &aStream) override |
| Take some input stream and prepare it for parsing. | |
| std::unique_ptr< BOARD_ITEM > | Parse () override |
| Actually perform the parsing and return a BOARD_ITEM if successful, or nullptr if not. | |
Private Attributes | |
| STDISTREAM_LINE_READER | m_reader |
Definition at line 110 of file pcb_parser_tool.cpp.
|
inlineoverridevirtual |
Actually perform the parsing and return a BOARD_ITEM if successful, or nullptr if not.
| IO_ERROR | if there is a parse failure |
Implements BOARD_PARSER.
Definition at line 115 of file pcb_parser_tool.cpp.
References m_reader, and PCB_IO_KICAD_SEXPR_PARSER::Parse().
|
inlineoverridevirtual |
Take some input stream and prepare it for parsing.
This may involve reading the whole stream into memory, or it may involve setting up some kind of streaming reader.
| IO_ERROR | if there is a problem setting up from the stream |
Implements STREAM_PARSER.
Definition at line 113 of file pcb_parser_tool.cpp.
References m_reader.
|
private |
Definition at line 122 of file pcb_parser_tool.cpp.
Referenced by Parse(), and PrepareStream().