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 Types | |
typedef std::vector< std::unique_ptr< DESIGN_BLOCK_INFO > > | DBILIST |
typedef SYNC_QUEUE< std::unique_ptr< IO_ERROR > > | ERRLIST |
Public Member Functions | |
DESIGN_BLOCK_LIST () | |
virtual | ~DESIGN_BLOCK_LIST () |
unsigned | GetCount () const |
const DBILIST & | 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 | |
DBILIST | m_list |
ERRLIST | 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 141 of file design_block_info.h.
typedef std::vector<std::unique_ptr<DESIGN_BLOCK_INFO> > DESIGN_BLOCK_LIST::DBILIST |
Definition at line 144 of file design_block_info.h.
typedef SYNC_QUEUE<std::unique_ptr<IO_ERROR> > DESIGN_BLOCK_LIST::ERRLIST |
Definition at line 145 of file design_block_info.h.
|
inline |
Definition at line 147 of file design_block_info.h.
|
inlinevirtual |
Definition at line 149 of file design_block_info.h.
|
inline |
Definition at line 162 of file design_block_info.h.
|
inline |
Definition at line 154 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 183 of file design_block_info.h.
|
inline |
Get info for a design block by index.
aIdx | index of the given item. |
Definition at line 181 of file design_block_info.h.
|
inline |
Was forced to add this by modview_frame.cpp.
Definition at line 157 of file design_block_info.h.
Referenced by DESIGN_BLOCK_TREE_MODEL_ADAPTER::getDesignBlocks().
|
inline |
Definition at line 209 of file design_block_info.h.
Referenced by DESIGN_BLOCK_INFO_IMPL::load().
|
inline |
Definition at line 185 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 215 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 212 of file design_block_info.h.
Referenced by DESIGN_BLOCK_LIST_IMPL::loadDesignBlocks(), DESIGN_BLOCK_LIST_IMPL::loadLibs(), and DESIGN_BLOCK_LIST_IMPL::ReadDesignBlockFiles().
|
protected |
Definition at line 214 of file design_block_info.h.
Referenced by GetDesignBlockInfo(), DESIGN_BLOCK_LIST_IMPL::loadDesignBlocks(), and DESIGN_BLOCK_LIST_IMPL::ReadDesignBlockFiles().