KiCad PCB EDA Suite
|
Holds a list of DESIGN_BLOCK_INFO objects, along with a list of IO_ERRORs or PARSE_ERRORs that were thrown acquiring the DESIGN_BLOCK_INFOs. More...
#include <design_block_info.h>
Public Member Functions | |
DESIGN_BLOCK_LIST () | |
virtual | ~DESIGN_BLOCK_LIST () |
unsigned | GetCount () const |
const std::vector< std::unique_ptr< DESIGN_BLOCK_INFO > > & | GetList () const |
Was forced to add this by modview_frame.cpp. | |
void | Clear () |
DESIGN_BLOCK_INFO * | GetDesignBlockInfo (const wxString &aDesignBlockName) |
Get info for a design block by id. | |
DESIGN_BLOCK_INFO * | GetDesignBlockInfo (const wxString &aLibNickname, const wxString &aDesignBlockName) |
Get info for a design block by libNickname/designBlockName. | |
DESIGN_BLOCK_INFO & | GetItem (unsigned aIdx) const |
Get info for a design block by index. | |
unsigned | GetErrorCount () const |
std::unique_ptr< IO_ERROR > | PopError () |
virtual bool | ReadDesignBlockFiles (DESIGN_BLOCK_LIB_TABLE *aTable, const wxString *aNickname=nullptr, PROGRESS_REPORTER *aProgressReporter=nullptr)=0 |
Read all the design blocks provided by the combination of aTable and aNickname. | |
DESIGN_BLOCK_LIB_TABLE * | GetTable () const |
Protected Attributes | |
DESIGN_BLOCK_LIB_TABLE * | m_lib_table = nullptr |
no ownership | |
std::vector< std::unique_ptr< DESIGN_BLOCK_INFO > > | m_list |
SYNC_QUEUE< std::unique_ptr< IO_ERROR > > | m_errors |
some can be PARSE_ERRORs also | |
Holds a list of DESIGN_BLOCK_INFO objects, along with a list of IO_ERRORs or PARSE_ERRORs that were thrown acquiring the DESIGN_BLOCK_INFOs.
This is a virtual class; its implementation lives in common/design_block_info_impl.cpp. To get instances of these classes, see DESIGN_BLOCK_LIST::GetInstance().
Definition at line 138 of file design_block_info.h.
|
inline |
Definition at line 141 of file design_block_info.h.
|
inlinevirtual |
Definition at line 143 of file design_block_info.h.
|
inline |
Definition at line 156 of file design_block_info.h.
|
inline |
Definition at line 148 of file design_block_info.h.
DESIGN_BLOCK_INFO * DESIGN_BLOCK_LIST::GetDesignBlockInfo | ( | const wxString & | aDesignBlockName | ) |
Get info for a design block by id.
Definition at line 57 of file design_block_info.cpp.
References GetDesignBlockInfo(), LIB_ID::GetLibItemName(), LIB_ID::GetLibNickname(), and LIB_ID::Parse().
Referenced by GetDesignBlockInfo(), and PANEL_DESIGN_BLOCK_CHOOSER::rebuildHistoryNode().
DESIGN_BLOCK_INFO * DESIGN_BLOCK_LIST::GetDesignBlockInfo | ( | const wxString & | aLibNickname, |
const wxString & | aDesignBlockName | ||
) |
Get info for a design block by libNickname/designBlockName.
Definition at line 41 of file design_block_info.cpp.
References m_list.
|
inline |
Definition at line 177 of file design_block_info.h.
|
inline |
Get info for a design block by index.
aIdx | index of the given item. |
Definition at line 175 of file design_block_info.h.
|
inline |
Was forced to add this by modview_frame.cpp.
Definition at line 151 of file design_block_info.h.
Referenced by DESIGN_BLOCK_TREE_MODEL_ADAPTER::getDesignBlocks().
|
inline |
Definition at line 203 of file design_block_info.h.
Referenced by DESIGN_BLOCK_INFO_IMPL::load().
|
inline |
Definition at line 179 of file design_block_info.h.
|
pure virtual |
Read all the design blocks provided by the combination of aTable and aNickname.
aTable | defines all the libraries. |
aNickname | is the library to read from, or if NULL means read all design blocks from all known libraries in aTable. |
aProgressReporter | is an optional progress reporter. ReadDesignBlockFiles() will use 2 phases within the reporter. |
Implemented in DESIGN_BLOCK_LIST_IMPL.
|
protected |
some can be PARSE_ERRORs also
Definition at line 209 of file design_block_info.h.
Referenced by DESIGN_BLOCK_LIST_IMPL::CatchErrors(), and DESIGN_BLOCK_LIST_IMPL::ReadDesignBlockFiles().
|
protected |
no ownership
Definition at line 206 of file design_block_info.h.
Referenced by DESIGN_BLOCK_LIST_IMPL::loadDesignBlocks(), and DESIGN_BLOCK_LIST_IMPL::ReadDesignBlockFiles().
|
protected |
Definition at line 208 of file design_block_info.h.
Referenced by GetDesignBlockInfo(), DESIGN_BLOCK_LIST_IMPL::loadDesignBlocks(), and DESIGN_BLOCK_LIST_IMPL::ReadDesignBlockFiles().