KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_odb_drill_tools.cpp File Reference
#include <cmath>
#include <filesystem>
#include <fstream>
#include <memory>
#include <set>
#include <string>
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <qa_utils/file_utils.h>
#include <pcbnew_utils/board_file_utils.h>
#include <boost/test/unit_test.hpp>
#include <board.h>
#include <pad.h>
#include <settings/settings_manager.h>
#include "pcb_io/odbpp/odb_test_utils.h"

Go to the source code of this file.

Classes

struct  ODB_TOOL_RECORD
 One TOOLS record from an ODB++ drill layer "tools" file. More...
 

Functions

static std::vector< ODB_TOOL_RECORD > parseOdbTools (const fs::path &aToolsFile)
 Parse the TOOLS records out of an ODB++ "tools" file.
 
static void checkNonPlatedDrillTools (const char *aUnits, double aOutputScale)
 
 BOOST_AUTO_TEST_CASE (OdbNonPlatedDrillTools)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( OdbNonPlatedDrillTools )

Definition at line 175 of file test_odb_drill_tools.cpp.

References checkNonPlatedDrillTools().

◆ checkNonPlatedDrillTools()

static void checkNonPlatedDrillTools ( const char * aUnits,
double aOutputScale )
static

◆ parseOdbTools()

static std::vector< ODB_TOOL_RECORD > parseOdbTools ( const fs::path & aToolsFile)
static

Parse the TOOLS records out of an ODB++ "tools" file.

The format is a flat sequence of "TOOLS {" blocks of KEY=VALUE lines. Only the keys the drill tool table is asserted on are read; the file's leading UNITS/THICKNESS/USER_PARAMS lines share none of those names, so they fall through untouched.

Definition at line 58 of file test_odb_drill_tools.cpp.

References tools.

Referenced by checkNonPlatedDrillTools().