25#ifndef QA_PCBNEW_UTILS_BOARD_FILE_UTILS__H
26#define QA_PCBNEW_UTILS_BOARD_FILE_UTILS__H
81 std::unique_ptr<ITEM> downcast_ptr;
84 ITEM*
const tmp =
dynamic_cast<ITEM*
>( bi_ptr.get() );
88 downcast_ptr.reset( tmp );
102 std::istream& aFallback = std::cin );
105 std::istream& aFallback = std::cin );
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
Information pertinent to a Pcbnew printed circuit board.
std::string GetPcbnewTestDataDir()
Utility which returns a path to the data directory where the test board files are stored.
std::unique_ptr< ITEM > ReadItemFromStream(std::istream &aStream)
Read a specific kind of BOARD_ITEM from a stream.
std::unique_ptr< BOARD > ReadBoardFromFileOrStream(const std::string &aFilename, std::istream &aFallback)
Read a board from a file, or another stream, as appropriate.
std::unique_ptr< FOOTPRINT > ReadFootprintFromFileOrStream(const std::string &aFilename, std::istream &aFallback)
void DumpBoardToFile(BOARD &board, const std::string &aFilename)
Utility function to simply write a Board out to a file.
std::unique_ptr< BOARD_ITEM > ReadBoardItemFromStream(std::istream &aStream)
Utility function to read a BOARD_ITEM (probably a FOOTPRINT or a BOARD) from a file.