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

Constructor & Destructor Documentation

const WX_FILENAME aFileName 

Definition at line 99 of file kicad_plugin.cpp.

Referenced by FP_CACHE::Load().

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

Member Function Documentation

const WX_FILENAME& FP_CACHE_ITEM::GetFileName ( ) const

Definition at line 94 of file kicad_plugin.cpp.

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

Definition at line 95 of file kicad_plugin.cpp.

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

Member Data Documentation


Definition at line 88 of file kicad_plugin.cpp.

std::unique_ptr<MODULE> FP_CACHE_ITEM::m_module

Definition at line 89 of file kicad_plugin.cpp.

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