KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PAD_ROUNDTRIP_FIXTURE Struct Reference

Sets up a footprint and a single pad, and provides a save/reload round trip. More...

Public Member Functions

 PAD_ROUNDTRIP_FIXTURE ()
 
std::unique_ptr< FOOTPRINT > RoundTrip () const
 Save the fixture footprint to a temporary library and load it back.
 

Public Attributes

FOOTPRINT m_Footprint
 
PAD * m_Pad
 

Detailed Description

Sets up a footprint and a single pad, and provides a save/reload round trip.

Definition at line 36 of file test_pad_roundtrip.cpp.

Constructor & Destructor Documentation

◆ PAD_ROUNDTRIP_FIXTURE()

PAD_ROUNDTRIP_FIXTURE::PAD_ROUNDTRIP_FIXTURE ( )
inline

Member Function Documentation

◆ RoundTrip()

std::unique_ptr< FOOTPRINT > PAD_ROUNDTRIP_FIXTURE::RoundTrip ( ) const
inline

Save the fixture footprint to a temporary library and load it back.

Returns
the reloaded footprint, or nullptr if the file could not be read.

Definition at line 63 of file test_pad_roundtrip.cpp.

References KI_TEST::SCOPED_TEMP_DIR::CreateChildDir(), KI_TEST::DumpFootprintToFile(), m_Footprint, and KI_TEST::ReadFootprintFromFile().

Member Data Documentation

◆ m_Footprint

FOOTPRINT PAD_ROUNDTRIP_FIXTURE::m_Footprint

Definition at line 73 of file test_pad_roundtrip.cpp.

Referenced by PAD_ROUNDTRIP_FIXTURE(), and RoundTrip().

◆ m_Pad

PAD* PAD_ROUNDTRIP_FIXTURE::m_Pad

Definition at line 74 of file test_pad_roundtrip.cpp.

Referenced by PAD_ROUNDTRIP_FIXTURE().


The documentation for this struct was generated from the following file: