KiCad PCB EDA Suite
|
#include <altium_pcb_compound_file.h>
Public Member Functions | |
ALTIUM_PCB_COMPOUND_FILE (const wxString &aFilePath) | |
ALTIUM_PCB_COMPOUND_FILE (const void *aBuffer, size_t aLen) | |
~ALTIUM_PCB_COMPOUND_FILE () | |
std::map< wxString, wxString > | ListLibFootprints () |
std::tuple< wxString, const CFB::COMPOUND_FILE_ENTRY * > | FindLibFootprintDirName (const wxString &aFpUnicodeName) |
const std::pair< AMODEL, std::vector< char > > * | GetLibModel (const wxString &aModelID) const |
bool | CacheLibModels () |
const CFB::CompoundFileReader & | GetCompoundFileReader () const |
std::unique_ptr< ALTIUM_COMPOUND_FILE > | DecodeIntLibStream (const CFB::COMPOUND_FILE_ENTRY &cfe) |
const CFB::COMPOUND_FILE_ENTRY * | FindStream (const std::vector< std::string > &aStreamPath) const |
const CFB::COMPOUND_FILE_ENTRY * | FindStream (const CFB::COMPOUND_FILE_ENTRY *aStart, const std::vector< std::string > &aStreamPath) const |
const CFB::COMPOUND_FILE_ENTRY * | FindStreamSingleLevel (const CFB::COMPOUND_FILE_ENTRY *aEntry, const std::string aName, const bool aIsStream) const |
std::map< wxString, const CFB::COMPOUND_FILE_ENTRY * > | EnumDir (const std::wstring &aDir) const |
std::map< wxString, ALTIUM_SYMBOL_DATA > | GetLibSymbols (const CFB::COMPOUND_FILE_ENTRY *aStart) const |
Private Member Functions | |
void | cacheLibFootprintNames () |
Private Attributes | |
std::map< wxString, const CFB::COMPOUND_FILE_ENTRY * > | m_libFootprintNameCache |
std::map< wxString, wxString > | m_libFootprintDirNameCache |
std::map< wxString, std::pair< AMODEL, std::vector< char > > > | m_libModelsCache |
std::unique_ptr< CFB::CompoundFileReader > | m_reader |
std::vector< char > | m_buffer |
Definition at line 32 of file altium_pcb_compound_file.h.
ALTIUM_PCB_COMPOUND_FILE::ALTIUM_PCB_COMPOUND_FILE | ( | const wxString & | aFilePath | ) |
Definition at line 9 of file altium_pcb_compound_file.cpp.
ALTIUM_PCB_COMPOUND_FILE::ALTIUM_PCB_COMPOUND_FILE | ( | const void * | aBuffer, |
size_t | aLen | ||
) |
Definition at line 14 of file altium_pcb_compound_file.cpp.
ALTIUM_PCB_COMPOUND_FILE::~ALTIUM_PCB_COMPOUND_FILE | ( | ) |
Definition at line 20 of file altium_pcb_compound_file.cpp.
|
private |
Definition at line 59 of file altium_pcb_compound_file.cpp.
References m_libFootprintDirNameCache, m_libFootprintNameCache, and ALTIUM_COMPOUND_FILE::m_reader.
Referenced by FindLibFootprintDirName(), and ListLibFootprints().
bool ALTIUM_PCB_COMPOUND_FILE::CacheLibModels | ( | ) |
Definition at line 105 of file altium_pcb_compound_file.cpp.
References ALTIUM_COMPOUND_FILE::FindStream(), ALTIUM_BINARY_PARSER::GetRemainingBytes(), m_libModelsCache, and ALTIUM_COMPOUND_FILE::m_reader.
|
inherited |
Definition at line 110 of file altium_binary_parser.cpp.
References ALTIUM_COMPOUND_FILE::GetCompoundFileReader().
|
inherited |
Definition at line 229 of file altium_binary_parser.cpp.
References ALTIUM_COMPOUND_FILE::m_reader.
std::tuple< wxString, const CFB::COMPOUND_FILE_ENTRY * > ALTIUM_PCB_COMPOUND_FILE::FindLibFootprintDirName | ( | const wxString & | aFpUnicodeName | ) |
Definition at line 34 of file altium_pcb_compound_file.cpp.
References cacheLibFootprintNames(), and m_libFootprintNameCache.
Referenced by ALTIUM_PCB::ParseFootprint().
|
inherited |
Definition at line 274 of file altium_binary_parser.cpp.
References ALTIUM_COMPOUND_FILE::FindStreamSingleLevel(), ALTIUM_COMPOUND_FILE::m_reader, and name.
|
inherited |
Definition at line 306 of file altium_binary_parser.cpp.
References ALTIUM_COMPOUND_FILE::FindStream().
Referenced by CacheLibModels(), ALTIUM_COMPOUND_FILE::FindStream(), ALTIUM_PCB::Parse(), SCH_IO_ALTIUM::ParseAdditional(), SCH_IO_ALTIUM::ParseFileHeader(), ALTIUM_PCB::ParseFootprint(), SCH_IO_ALTIUM::ParseLibHeader(), ALTIUM_PCB::ParseModelsData(), and SCH_IO_ALTIUM::ParseStorage().
|
inherited |
Definition at line 153 of file altium_binary_parser.cpp.
References ALTIUM_COMPOUND_FILE::m_reader.
Referenced by ALTIUM_COMPOUND_FILE::FindStream().
|
inlineinherited |
Definition at line 93 of file altium_binary_parser.h.
References ALTIUM_COMPOUND_FILE::m_reader.
Referenced by ALTIUM_BINARY_PARSER::ALTIUM_BINARY_PARSER(), ALTIUM_COMPOUND_FILE::DecodeIntLibStream(), and ALTIUM_PCB::ParseModelsData().
const std::pair< AMODEL, std::vector< char > > * ALTIUM_PCB_COMPOUND_FILE::GetLibModel | ( | const wxString & | aModelID | ) | const |
Definition at line 48 of file altium_pcb_compound_file.cpp.
References m_libModelsCache.
Referenced by ALTIUM_PCB::ConvertComponentBody6ToFootprintItem().
|
inherited |
Definition at line 185 of file altium_binary_parser.cpp.
References ALTIUM_COMPOUND_FILE::m_reader.
Referenced by SCH_IO_ALTIUM::ParseLibFile().
std::map< wxString, wxString > ALTIUM_PCB_COMPOUND_FILE::ListLibFootprints | ( | ) |
Definition at line 24 of file altium_pcb_compound_file.cpp.
References cacheLibFootprintNames(), and m_libFootprintDirNameCache.
|
privateinherited |
Definition at line 112 of file altium_binary_parser.h.
Referenced by ALTIUM_COMPOUND_FILE::ALTIUM_COMPOUND_FILE().
|
private |
Definition at line 51 of file altium_pcb_compound_file.h.
Referenced by cacheLibFootprintNames(), and ListLibFootprints().
|
private |
Definition at line 50 of file altium_pcb_compound_file.h.
Referenced by cacheLibFootprintNames(), and FindLibFootprintDirName().
|
private |
Definition at line 52 of file altium_pcb_compound_file.h.
Referenced by CacheLibModels(), and GetLibModel().
|
privateinherited |
Definition at line 111 of file altium_binary_parser.h.
Referenced by ALTIUM_COMPOUND_FILE::ALTIUM_COMPOUND_FILE(), cacheLibFootprintNames(), CacheLibModels(), ALTIUM_COMPOUND_FILE::EnumDir(), ALTIUM_COMPOUND_FILE::FindStream(), ALTIUM_COMPOUND_FILE::FindStreamSingleLevel(), ALTIUM_COMPOUND_FILE::GetCompoundFileReader(), and ALTIUM_COMPOUND_FILE::GetLibSymbols().