#include <design_block_info_impl.h>
|
bool | CatchErrors (const std::function< void()> &aFunc) |
| Call aFunc, pushing any IO_ERRORs and std::exceptions it throws onto m_errors.
|
|
Definition at line 80 of file design_block_info_impl.h.
◆ DBILIST
◆ ERRLIST
◆ DESIGN_BLOCK_LIST_IMPL()
DESIGN_BLOCK_LIST_IMPL::DESIGN_BLOCK_LIST_IMPL |
( |
| ) |
|
◆ ~DESIGN_BLOCK_LIST_IMPL()
virtual DESIGN_BLOCK_LIST_IMPL::~DESIGN_BLOCK_LIST_IMPL |
( |
| ) |
|
|
inlinevirtual |
◆ CatchErrors()
bool DESIGN_BLOCK_LIST_IMPL::CatchErrors |
( |
const std::function< void()> & |
aFunc | ) |
|
|
private |
◆ Clear()
void DESIGN_BLOCK_LIST::Clear |
( |
| ) |
|
|
inlineinherited |
◆ GetCount()
unsigned DESIGN_BLOCK_LIST::GetCount |
( |
| ) |
const |
|
inlineinherited |
◆ GetDesignBlockInfo() [1/2]
DESIGN_BLOCK_INFO * DESIGN_BLOCK_LIST::GetDesignBlockInfo |
( |
const wxString & |
aDesignBlockName | ) |
|
|
inherited |
◆ GetDesignBlockInfo() [2/2]
DESIGN_BLOCK_INFO * DESIGN_BLOCK_LIST::GetDesignBlockInfo |
( |
const wxString & |
aLibNickname, |
|
|
const wxString & |
aDesignBlockName |
|
) |
| |
|
inherited |
◆ GetErrorCount()
unsigned DESIGN_BLOCK_LIST::GetErrorCount |
( |
| ) |
const |
|
inlineinherited |
◆ GetItem()
Get info for a design block by index.
- Parameters
-
aIdx | index of the given item. |
- Returns
- the aIdx item in list.
Definition at line 181 of file design_block_info.h.
◆ GetList()
const DBILIST & DESIGN_BLOCK_LIST::GetList |
( |
| ) |
const |
|
inlineinherited |
◆ GetTable()
◆ loadDesignBlocks()
void DESIGN_BLOCK_LIST_IMPL::loadDesignBlocks |
( |
| ) |
|
|
protected |
Definition at line 212 of file design_block_info_impl.cpp.
References PROGRESS_REPORTER::AdvanceProgress(), CatchErrors(), DESIGN_BLOCK_LIB_TABLE::DesignBlockEnumerate(), GetKiCadThreadPool(), PROGRESS_REPORTER::KeepRefreshing(), m_cancelled, DESIGN_BLOCK_LIST::m_lib_table, DESIGN_BLOCK_LIST::m_list, m_progress_reporter, m_queue_out, SYNC_QUEUE< T >::move_push(), SYNC_QUEUE< T >::pop(), SYNC_QUEUE< T >::size(), and tp.
Referenced by ReadDesignBlockFiles().
◆ loadLibs()
void DESIGN_BLOCK_LIST_IMPL::loadLibs |
( |
| ) |
|
|
protected |
Definition at line 165 of file design_block_info_impl.cpp.
References PROGRESS_REPORTER::AdvanceProgress(), CatchErrors(), GetKiCadThreadPool(), PROGRESS_REPORTER::KeepRefreshing(), m_cancelled, DESIGN_BLOCK_LIST::m_lib_table, m_progress_reporter, m_queue_in, m_queue_out, SYNC_QUEUE< T >::pop(), DESIGN_BLOCK_LIB_TABLE::PrefetchLib(), SYNC_QUEUE< T >::push(), SYNC_QUEUE< T >::size(), and tp.
Referenced by ReadDesignBlockFiles().
◆ PopError()
std::unique_ptr< IO_ERROR > DESIGN_BLOCK_LIST::PopError |
( |
| ) |
|
|
inlineinherited |
◆ ReadDesignBlockFiles()
Read all the design blocks provided by the combination of aTable and aNickname.
- Parameters
-
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. |
- Returns
- true if it ran to completion, else false if it aborted after some number of errors. If true, it does not mean there were no errors, check GetErrorCount() for that, should be zero to indicate success.
Implements DESIGN_BLOCK_LIST.
Definition at line 90 of file design_block_info_impl.cpp.
References _, PROGRESS_REPORTER::AdvancePhase(), CatchErrors(), SYNC_QUEUE< T >::clear(), SYNC_QUEUE< T >::empty(), DESIGN_BLOCK_LIB_TABLE::GenerateTimestamp(), LIB_TABLE::GetLogicalLibs(), loadDesignBlocks(), loadLibs(), m_cancelled, DESIGN_BLOCK_LIST::m_errors, DESIGN_BLOCK_LIST::m_lib_table, DESIGN_BLOCK_LIST::m_list, m_list_timestamp, m_progress_reporter, m_queue_in, m_queue_out, SYNC_QUEUE< T >::push(), PROGRESS_REPORTER::Report(), PROGRESS_REPORTER::SetMaxProgress(), and SYNC_QUEUE< T >::size().
Referenced by PANEL_DESIGN_BLOCK_CHOOSER::PANEL_DESIGN_BLOCK_CHOOSER(), and PANEL_DESIGN_BLOCK_CHOOSER::RefreshLibs().
◆ m_cancelled
std::atomic_bool DESIGN_BLOCK_LIST_IMPL::m_cancelled |
|
private |
◆ m_errors
ERRLIST DESIGN_BLOCK_LIST::m_errors |
|
protectedinherited |
◆ m_join
std::mutex DESIGN_BLOCK_LIST_IMPL::m_join |
|
private |
◆ m_lib_table
◆ m_list
◆ m_list_timestamp
long long DESIGN_BLOCK_LIST_IMPL::m_list_timestamp |
|
private |
◆ m_progress_reporter
◆ m_queue_in
SYNC_QUEUE<wxString> DESIGN_BLOCK_LIST_IMPL::m_queue_in |
|
private |
◆ m_queue_out
SYNC_QUEUE<wxString> DESIGN_BLOCK_LIST_IMPL::m_queue_out |
|
private |
The documentation for this class was generated from the following files: