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 83 of file kicad_plugin.cpp.

Constructor & Destructor Documentation

FP_CACHE_ITEM::FP_CACHE_ITEM ( MODULE aModule,
const WX_FILENAME aFileName 
)

Definition at line 96 of file kicad_plugin.cpp.

Referenced by FP_CACHE::Load().

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

Member Function Documentation

const WX_FILENAME& FP_CACHE_ITEM::GetFileName ( ) const
inline

Definition at line 91 of file kicad_plugin.cpp.

91 { return m_filename; }
WX_FILENAME m_filename
const MODULE* FP_CACHE_ITEM::GetModule ( ) const
inline

Definition at line 92 of file kicad_plugin.cpp.

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

Member Data Documentation

WX_FILENAME FP_CACHE_ITEM::m_filename
private

Definition at line 85 of file kicad_plugin.cpp.

std::unique_ptr<MODULE> FP_CACHE_ITEM::m_module
private

Definition at line 86 of file kicad_plugin.cpp.


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