KiCad PCB EDA Suite
No Matches
board_file_utils.h File Reference

General utilities for PCB file IO for QA programs. More...

#include <iostream>
#include <memory>
#include <string>

Go to the source code of this file.


namespace  KI_TEST


std::string KI_TEST::GetPcbnewTestDataDir ()
 Utility which returns a path to the data directory where the test board files are stored.
void KI_TEST::DumpBoardToFile (BOARD &aBoard, const std::string &aFilename)
 Utility function to simply write a Board out to a file.
std::unique_ptr< BOARD_ITEMKI_TEST::ReadBoardItemFromStream (std::istream &aStream)
 Utility function to read a BOARD_ITEM (probably a FOOTPRINT or a BOARD) from a file.
template<typename ITEM >
std::unique_ptr< ITEMKI_TEST::ReadItemFromStream (std::istream &aStream)
 Read a specific kind of BOARD_ITEM from a stream.
std::unique_ptr< BOARDKI_TEST::ReadBoardFromFileOrStream (const std::string &aFilename, std::istream &aFallback=std::cin)
 Read a board from a file, or another stream, as appropriate.
std::unique_ptr< FOOTPRINTKI_TEST::ReadFootprintFromFileOrStream (const std::string &aFilename, std::istream &aFallback)

Detailed Description

General utilities for PCB file IO for QA programs.

Definition in file board_file_utils.h.