KiCad PCB EDA Suite
|
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_LEGACY * | m_owner |
wxString | m_lib_path |
FOOTPRINT_MAP | m_footprints |
bool | m_writable |
bool | m_cache_dirty |
long long | m_cache_timestamp |
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 2960 of file pcb_io_kicad_legacy.cpp.
LP_CACHE::LP_CACHE | ( | PCB_IO_KICAD_LEGACY * | aOwner, |
const wxString & | aLibraryPath | ||
) |
Definition at line 2991 of file pcb_io_kicad_legacy.cpp.
|
static |
Definition at line 3009 of file pcb_io_kicad_legacy.cpp.
Referenced by PCB_IO_KICAD_LEGACY::GetLibraryTimestamp(), IsModified(), and Load().
bool LP_CACHE::IsModified | ( | ) |
Definition at line 3001 of file pcb_io_kicad_legacy.cpp.
References GetTimestamp(), m_cache_dirty, m_cache_timestamp, and m_lib_path.
Referenced by PCB_IO_KICAD_LEGACY::cacheLib().
void LP_CACHE::Load | ( | ) |
Definition at line 3015 of file pcb_io_kicad_legacy.cpp.
References GetTimestamp(), LoadModules(), m_cache_dirty, m_cache_timestamp, m_lib_path, ReadAndVerifyHeader(), and SkipIndex().
Referenced by PCB_IO_KICAD_LEGACY::cacheLib().
void LP_CACHE::LoadModules | ( | LINE_READER * | aReader | ) |
Definition at line 3092 of file pcb_io_kicad_legacy.cpp.
References LINE_READER::Line(), PCB_IO_KICAD_LEGACY::loadFOOTPRINT(), PCB_IO::m_board, m_footprints, m_owner, LINE_READER::ReadLine(), ReplaceIllegalFileNameChars(), FOOTPRINT::SetFPID(), PCB_IO_KICAD_LEGACY::SetReader(), StrPurge(), SZ, and TESTLINE.
Referenced by Load().
void LP_CACHE::ReadAndVerifyHeader | ( | LINE_READER * | aReader | ) |
Definition at line 3032 of file pcb_io_kicad_legacy.cpp.
References _, delims, PCB_IO_KICAD_LEGACY::diskToBiu, EDA_IU_SCALE::IU_PER_MM, m_lib_path, m_owner, pcbIUScale, LINE_READER::ReadLine(), SZ, TESTLINE, and THROW_IO_ERROR.
Referenced by Load().
void LP_CACHE::SkipIndex | ( | LINE_READER * | aReader | ) |
Definition at line 3061 of file pcb_io_kicad_legacy.cpp.
References exit, LINE_READER::Line(), LINE_READER::ReadLine(), and TESTLINE.
Referenced by Load().
bool LP_CACHE::m_cache_dirty |
Definition at line 2984 of file pcb_io_kicad_legacy.cpp.
Referenced by IsModified(), and Load().
long long LP_CACHE::m_cache_timestamp |
Definition at line 2986 of file pcb_io_kicad_legacy.cpp.
Referenced by IsModified(), and Load().
FOOTPRINT_MAP LP_CACHE::m_footprints |
Definition at line 2981 of file pcb_io_kicad_legacy.cpp.
Referenced by PCB_IO_KICAD_LEGACY::FootprintEnumerate(), PCB_IO_KICAD_LEGACY::FootprintLoad(), and LoadModules().
wxString LP_CACHE::m_lib_path |
Definition at line 2980 of file pcb_io_kicad_legacy.cpp.
Referenced by PCB_IO_KICAD_LEGACY::cacheLib(), PCB_IO_KICAD_LEGACY::DeleteLibrary(), IsModified(), Load(), and ReadAndVerifyHeader().
PCB_IO_KICAD_LEGACY* LP_CACHE::m_owner |
Definition at line 2979 of file pcb_io_kicad_legacy.cpp.
Referenced by LoadModules(), and ReadAndVerifyHeader().
bool LP_CACHE::m_writable |
Definition at line 2982 of file pcb_io_kicad_legacy.cpp.
Referenced by PCB_IO_KICAD_LEGACY::IsLibraryWritable().