KiCad PCB EDA Suite
|
#include <altium_binary_parser.h>
Public Member Functions | |
ALTIUM_COMPOUND_FILE (const wxString &aFilePath) | |
Open a CFB file. | |
ALTIUM_COMPOUND_FILE (const void *aBuffer, size_t aLen) | |
Load a CFB file from memory. | |
ALTIUM_COMPOUND_FILE (const ALTIUM_COMPOUND_FILE &temp_obj)=delete | |
ALTIUM_COMPOUND_FILE & | operator= (const ALTIUM_COMPOUND_FILE &temp_obj)=delete |
~ALTIUM_COMPOUND_FILE ()=default | |
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 Attributes | |
std::unique_ptr< CFB::CompoundFileReader > | m_reader |
std::vector< char > | m_buffer |
Friends | |
class | ALTIUM_PCB_COMPOUND_FILE |
Definition at line 68 of file altium_binary_parser.h.
ALTIUM_COMPOUND_FILE::ALTIUM_COMPOUND_FILE | ( | const wxString & | aFilePath | ) |
Open a CFB file.
Constructor might throw an IO_ERROR.
aFilePath | path to file to open |
Definition at line 50 of file altium_binary_parser.cpp.
References _, m_buffer, m_reader, and THROW_IO_ERROR.
ALTIUM_COMPOUND_FILE::ALTIUM_COMPOUND_FILE | ( | const void * | aBuffer, |
size_t | aLen | ||
) |
Load a CFB file from memory.
Constructor might throw an IO_ERROR. Data is copied.
aBuffer | data buffer |
aLen | data length |
Definition at line 93 of file altium_binary_parser.cpp.
References m_buffer, m_reader, and THROW_IO_ERROR.
|
delete |
|
default |
std::unique_ptr< ALTIUM_COMPOUND_FILE > ALTIUM_COMPOUND_FILE::DecodeIntLibStream | ( | const CFB::COMPOUND_FILE_ENTRY & | cfe | ) |
Definition at line 110 of file altium_binary_parser.cpp.
References GetCompoundFileReader().
std::map< wxString, const CFB::COMPOUND_FILE_ENTRY * > ALTIUM_COMPOUND_FILE::EnumDir | ( | const std::wstring & | aDir | ) | const |
Definition at line 229 of file altium_binary_parser.cpp.
References m_reader.
const CFB::COMPOUND_FILE_ENTRY * ALTIUM_COMPOUND_FILE::FindStream | ( | const CFB::COMPOUND_FILE_ENTRY * | aStart, |
const std::vector< std::string > & | aStreamPath | ||
) | const |
Definition at line 274 of file altium_binary_parser.cpp.
References FindStreamSingleLevel(), m_reader, and name.
const CFB::COMPOUND_FILE_ENTRY * ALTIUM_COMPOUND_FILE::FindStream | ( | const std::vector< std::string > & | aStreamPath | ) | const |
Definition at line 306 of file altium_binary_parser.cpp.
References FindStream().
Referenced by ALTIUM_PCB_COMPOUND_FILE::CacheLibModels(), 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().
const CFB::COMPOUND_FILE_ENTRY * ALTIUM_COMPOUND_FILE::FindStreamSingleLevel | ( | const CFB::COMPOUND_FILE_ENTRY * | aEntry, |
const std::string | aName, | ||
const bool | aIsStream | ||
) | const |
Definition at line 153 of file altium_binary_parser.cpp.
References m_reader.
Referenced by FindStream().
|
inline |
Definition at line 93 of file altium_binary_parser.h.
References m_reader.
Referenced by ALTIUM_BINARY_PARSER::ALTIUM_BINARY_PARSER(), DecodeIntLibStream(), and ALTIUM_PCB::ParseModelsData().
std::map< wxString, ALTIUM_SYMBOL_DATA > ALTIUM_COMPOUND_FILE::GetLibSymbols | ( | const CFB::COMPOUND_FILE_ENTRY * | aStart | ) | const |
Definition at line 185 of file altium_binary_parser.cpp.
References m_reader.
Referenced by SCH_IO_ALTIUM::ParseLibFile().
|
delete |
|
friend |
Definition at line 70 of file altium_binary_parser.h.
|
private |
Definition at line 112 of file altium_binary_parser.h.
Referenced by ALTIUM_COMPOUND_FILE().
|
private |
Definition at line 111 of file altium_binary_parser.h.
Referenced by ALTIUM_COMPOUND_FILE(), ALTIUM_PCB_COMPOUND_FILE::cacheLibFootprintNames(), ALTIUM_PCB_COMPOUND_FILE::CacheLibModels(), EnumDir(), FindStream(), FindStreamSingleLevel(), GetCompoundFileReader(), and GetLibSymbols().