TraceMaker
C++ API of the engine
Loading...
Searching...
No Matches
board_reader.hpp File Reference

Reads .kicad_pcb files (KiCad 9 and 10 formats) into the board model, keeping the s-expression document for lossless writing. More...

#include <string>
#include "model/board.hpp"
#include "sexpr/sexpr.hpp"

Go to the source code of this file.

Classes

struct  tmk::io::LoadedBoard

Namespaces

namespace  tmk
namespace  tmk::io

Functions

LoadedBoard tmk::io::read_board_file (const std::string &path)
 Throws sexpr::ParseError or std::runtime_error on malformed files.
model::Board tmk::io::read_board (const sexpr::Document &doc)
 Reads the board as the document would be written: pending edits are applied first (the returned board's node ids then refer to the re-parsed text, so do not use them to edit doc further).

Detailed Description

Reads .kicad_pcb files (KiCad 9 and 10 formats) into the board model, keeping the s-expression document for lossless writing.

Definition in file board_reader.hpp.