KiCad PCB EDA Suite
GPCB_FPL_CACHE_ITEM Class Reference

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

Public Member Functions

 GPCB_FPL_CACHE_ITEM (MODULE *aModule, const wxFileName &aFileName)
 
wxString GetName () const
 
wxFileName GetFileName () const
 
MODULEGetModule () const
 

Private Attributes

wxFileName m_file_name
 The the full file name and path of the footprint to cache. More...
 
bool m_writable
 Writability status of the footprint file. More...
 
std::unique_ptr< MODULEm_module
 

Detailed Description

Class GPCB_FPL_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 109 of file gpcb_plugin.cpp.

Constructor & Destructor Documentation

GPCB_FPL_CACHE_ITEM::GPCB_FPL_CACHE_ITEM ( MODULE aModule,
const wxFileName &  aFileName 
)

Definition at line 124 of file gpcb_plugin.cpp.

References m_file_name, and m_writable.

Referenced by GPCB_FPL_CACHE::Load().

124  :
125  m_module( aModule )
126 {
127  m_file_name = aFileName;
128  m_writable = true; // temporary init
129 }
bool m_writable
Writability status of the footprint file.
wxFileName m_file_name
The the full file name and path of the footprint to cache.
std::unique_ptr< MODULE > m_module

Member Function Documentation

wxFileName GPCB_FPL_CACHE_ITEM::GetFileName ( ) const
inline

Definition at line 119 of file gpcb_plugin.cpp.

References m_file_name.

119 { return m_file_name; }
wxFileName m_file_name
The the full file name and path of the footprint to cache.
MODULE* GPCB_FPL_CACHE_ITEM::GetModule ( ) const
inline

Definition at line 120 of file gpcb_plugin.cpp.

120 { return m_module.get(); }
std::unique_ptr< MODULE > m_module
wxString GPCB_FPL_CACHE_ITEM::GetName ( ) const
inline

Definition at line 118 of file gpcb_plugin.cpp.

118 { return m_file_name.GetDirs().Last(); }
wxFileName m_file_name
The the full file name and path of the footprint to cache.

Member Data Documentation

wxFileName GPCB_FPL_CACHE_ITEM::m_file_name
private

The the full file name and path of the footprint to cache.

Definition at line 111 of file gpcb_plugin.cpp.

Referenced by GetFileName(), and GPCB_FPL_CACHE_ITEM().

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

Definition at line 113 of file gpcb_plugin.cpp.

bool GPCB_FPL_CACHE_ITEM::m_writable
private

Writability status of the footprint file.

Definition at line 112 of file gpcb_plugin.cpp.

Referenced by GPCB_FPL_CACHE_ITEM().


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