|
KiCad PCB EDA Suite
|
#include <clocale>#include <filesystem>#include <map>#include <set>#include <string>#include <vector>#include <wx/string.h>#include <layer_ids.h>#include <pad.h>#include <qa_utils/file_utils.h>#include <pcbnew/pcb_io/odbpp/odb_export_job.h>Go to the source code of this file.
Classes | |
| class | SCOPED_C_CTYPE |
| Set C LC_CTYPE on non-Windows hosts and restore the previous locale. More... | |
| class | OdbFeatureFile |
| class | ODB_PRODUCT |
| The matrix and layer directories of an exported ODB++ product model tree. More... | |
Functions | |
| std::filesystem::path | ExportOdb (const BOARD &aBoard, const std::filesystem::path &aDir, const std::string &aUnits="mm", const std::string &aSigfig="6", REPORTER *aReporter=nullptr) |
| Export a board to an ODB++ product model tree rooted at aDir and return aDir. | |
| std::vector< std::string > | ReadLines (const std::filesystem::path &aFile) |
| Read a text file into one string per line, with no trailing newline characters. | |
| const KI_TEST::SCOPED_TEMP_DIR & | TempDir () |
| size_t | CountPads (const BOARD &aBoard, PAD_PROP aProperty, PCB_LAYER_ID aLayer) |
| size_t CountPads | ( | const BOARD & | aBoard, |
| PAD_PROP | aProperty, | ||
| PCB_LAYER_ID | aLayer ) |
Definition at line 80 of file odb_test_utils.cpp.
References BOARD::Footprints(), and pad.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
| std::filesystem::path ExportOdb | ( | const BOARD & | aBoard, |
| const std::filesystem::path & | aDir, | ||
| const std::string & | aUnits = "mm", | ||
| const std::string & | aSigfig = "6", | ||
| REPORTER * | aReporter = nullptr ) |
Export a board to an ODB++ product model tree rooted at aDir and return aDir.
aDir must be a directory the caller does not share with any other export, since the exporter does not clear stale files from a previous run out of a reused directory.
| std::vector< std::string > ReadLines | ( | const std::filesystem::path & | aFile | ) |
Read a text file into one string per line, with no trailing newline characters.
Referenced by OdbFeatureFile::OdbFeatureFile().
| const KI_TEST::SCOPED_TEMP_DIR & TempDir | ( | ) |
Definition at line 72 of file odb_test_utils.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().