|
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 | |
| std::vector< uint8_t > | m_buffer |
Definition at line 126 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 142 of file pcb_parser_tool.cpp.
References PCB_IO_ALLEGRO::LoadBoardFromData(), and m_buffer.
|
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 129 of file pcb_parser_tool.cpp.
References _, m_buffer, and THROW_IO_ERROR.
|
private |
Definition at line 156 of file pcb_parser_tool.cpp.
Referenced by Parse(), and PrepareStream().