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

The footprint portion of the PLUGIN API, and only for the PCB_IO_KICAD_LEGACY, so therefore is private to this implementation file, i.e. More...

Public Member Functions

 LP_CACHE (PCB_IO_KICAD_LEGACY *aOwner, const wxString &aLibraryPath)
 
void Load ()
 
void ReadAndVerifyHeader (LINE_READER *aReader)
 
void SkipIndex (LINE_READER *aReader)
 
void LoadModules (LINE_READER *aReader)
 
bool IsModified ()
 

Static Public Member Functions

static long long GetTimestamp (const wxString &aLibPath)
 

Public Attributes

PCB_IO_KICAD_LEGACYm_owner
 
wxString m_lib_path
 
FOOTPRINT_MAP m_footprints
 
bool m_writable
 
bool m_cache_dirty
 
long long m_cache_timestamp
 

Detailed Description

The footprint portion of the PLUGIN API, and only for the PCB_IO_KICAD_LEGACY, so therefore is private to this implementation file, i.e.

not placed into a header.

Definition at line 3002 of file pcb_io_kicad_legacy.cpp.

Constructor & Destructor Documentation

◆ LP_CACHE()

LP_CACHE::LP_CACHE ( PCB_IO_KICAD_LEGACY * aOwner,
const wxString & aLibraryPath )

Definition at line 3033 of file pcb_io_kicad_legacy.cpp.

References m_cache_dirty, m_cache_timestamp, m_lib_path, m_owner, and m_writable.

Member Function Documentation

◆ GetTimestamp()

long long LP_CACHE::GetTimestamp ( const wxString & aLibPath)
static

◆ IsModified()

bool LP_CACHE::IsModified ( )

Definition at line 3043 of file pcb_io_kicad_legacy.cpp.

References GetTimestamp(), m_cache_dirty, m_cache_timestamp, and m_lib_path.

◆ Load()

void LP_CACHE::Load ( )

◆ LoadModules()

void LP_CACHE::LoadModules ( LINE_READER * aReader)

◆ ReadAndVerifyHeader()

void LP_CACHE::ReadAndVerifyHeader ( LINE_READER * aReader)

Definition at line 3079 of file pcb_io_kicad_legacy.cpp.

References _, delims, m_lib_path, m_owner, pcbIUScale, LINE_READER::ReadLine(), SZ, TESTLINE, and THROW_IO_ERROR.

Referenced by Load().

◆ SkipIndex()

void LP_CACHE::SkipIndex ( LINE_READER * aReader)

Definition at line 3108 of file pcb_io_kicad_legacy.cpp.

References exit, LINE_READER::Line(), LINE_READER::ReadLine(), and TESTLINE.

Referenced by Load().

Member Data Documentation

◆ m_cache_dirty

bool LP_CACHE::m_cache_dirty

Definition at line 3026 of file pcb_io_kicad_legacy.cpp.

Referenced by IsModified(), Load(), and LP_CACHE().

◆ m_cache_timestamp

long long LP_CACHE::m_cache_timestamp

Definition at line 3028 of file pcb_io_kicad_legacy.cpp.

Referenced by IsModified(), Load(), and LP_CACHE().

◆ m_footprints

FOOTPRINT_MAP LP_CACHE::m_footprints

Definition at line 3023 of file pcb_io_kicad_legacy.cpp.

Referenced by LoadModules().

◆ m_lib_path

wxString LP_CACHE::m_lib_path

Definition at line 3022 of file pcb_io_kicad_legacy.cpp.

Referenced by IsModified(), Load(), LP_CACHE(), and ReadAndVerifyHeader().

◆ m_owner

PCB_IO_KICAD_LEGACY* LP_CACHE::m_owner

Definition at line 3021 of file pcb_io_kicad_legacy.cpp.

Referenced by LoadModules(), LP_CACHE(), and ReadAndVerifyHeader().

◆ m_writable

bool LP_CACHE::m_writable

Definition at line 3024 of file pcb_io_kicad_legacy.cpp.

Referenced by LP_CACHE().


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