KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SEXPR_STREAM_PARSER Class Reference
Inheritance diagram for SEXPR_STREAM_PARSER:
STREAM_PARSER BOARD_PARSER

Public Member Functions

void PrepareStream (std::istream &aStream) override
 Take some input stream and prepare it for parsing.
 
std::unique_ptr< BOARD_ITEMParse () override
 Actually perform the parsing and return a BOARD_ITEM if successful, or nullptr if not.
 

Private Attributes

STDISTREAM_LINE_READER m_reader
 

Detailed Description

Definition at line 110 of file pcb_parser_tool.cpp.

Member Function Documentation

◆ Parse()

std::unique_ptr< BOARD_ITEM > SEXPR_STREAM_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 115 of file pcb_parser_tool.cpp.

References m_reader, and PCB_IO_KICAD_SEXPR_PARSER::Parse().

◆ PrepareStream()

void SEXPR_STREAM_PARSER::PrepareStream ( std::istream & aStream)
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.

Exceptions
IO_ERRORif 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.

Member Data Documentation

◆ m_reader

STDISTREAM_LINE_READER SEXPR_STREAM_PARSER::m_reader
private

Definition at line 122 of file pcb_parser_tool.cpp.

Referenced by Parse(), and PrepareStream().


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