KiCad PCB EDA Suite
FP_CACHE_ITEM Class Reference

Class FP_CACHE_ITEM is helper class for creating a footprint library cache. More...

Public Member Functions

 FP_CACHE_ITEM (MODULE *aModule, const WX_FILENAME &aFileName)
const WX_FILENAMEGetFileName () const
const MODULEGetModule () const

Private Attributes

WX_FILENAME m_filename
std::unique_ptr< MODULEm_module

Detailed Description

Class FP_CACHE_ITEM is helper class for creating a footprint library cache.

The new footprint library design is a file path of individual module files that contain a single module per file. This class is a helper only for the footprint portion of the PLUGIN API, and only for the PCB_IO plugin. It is private to this implementation file so it is not placed into a header.

Definition at line 84 of file kicad_plugin.cpp.

Constructor & Destructor Documentation


const WX_FILENAME aFileName 

Definition at line 97 of file kicad_plugin.cpp.

97  :
98  m_filename( aFileName ),
99  m_module( aModule )
100 { }
std::unique_ptr< MODULE > m_module
WX_FILENAME m_filename

Member Function Documentation

◆ GetFileName()

const WX_FILENAME& FP_CACHE_ITEM::GetFileName ( ) const

Definition at line 92 of file kicad_plugin.cpp.

92 { return m_filename; }
WX_FILENAME m_filename

◆ GetModule()

const MODULE* FP_CACHE_ITEM::GetModule ( ) const

Definition at line 93 of file kicad_plugin.cpp.

93 { return m_module.get(); }
std::unique_ptr< MODULE > m_module

Member Data Documentation

◆ m_filename


Definition at line 86 of file kicad_plugin.cpp.

◆ m_module

std::unique_ptr<MODULE> FP_CACHE_ITEM::m_module

Definition at line 87 of file kicad_plugin.cpp.

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