29 #ifndef FOOTPRINT_INFO_H_ 30 #define FOOTPRINT_INFO_H_ 33 #include <boost/ptr_container/ptr_vector.hpp> 48 class wxTopLevelWindow;
74 wxString
GetName()
const override {
return m_fpname; }
78 return LIB_ID( m_nickname, m_fpname );
97 static const wxString discount( wxT(
" " ) );
111 return m_unique_pad_count;
128 bool InLibrary(
const wxString& aLibrary )
const;
146 virtual void load() { };
172 typedef std::vector<std::unique_ptr<FOOTPRINT_INFO>>
FPILIST;
191 return m_list.size();
211 FOOTPRINT_INFO* GetFootprintInfo(
const wxString& aFootprintName );
217 const wxString& aFootprintName );
227 return *m_list[aIdx];
232 return m_errors.size();
237 std::unique_ptr<IO_ERROR> error;
239 m_errors.pop( error );
255 virtual bool ReadFootprintFiles(
FP_LIB_TABLE* aTable,
const wxString* aNickname =
nullptr,
258 void DisplayErrors( wxTopLevelWindow* aCaller =
NULL );
279 virtual void startWorkers(
FP_LIB_TABLE* aTable, wxString
const* aNickname,
285 virtual bool joinWorkers() = 0;
290 virtual void stopWorkers() = 0;
333 void Start(
FP_LIB_TABLE* aTable, wxString
const* aNickname =
nullptr,
334 unsigned aNThreads = DEFAULT_THREADS );
362 static constexpr
unsigned DEFAULT_THREADS = 6;
374 #endif // FOOTPRINT_INFO_H_
#define APIEXPORT
Macros which export functions from a DLL/DSO.
A progress reporter for use in multi-threaded environments.
A mix-in to provide polymorphism between items stored in libraries (symbols, aliases and footprints).
Synchronized, locking queue.
A logical library item identifier and consists of various portions much like a URI.
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
virtual wxString GetDescription()=0