29 #ifndef FOOTPRINT_INFO_H_ 30 #define FOOTPRINT_INFO_H_ 33 #include <boost/ptr_container/ptr_vector.hpp> 51 class wxTopLevelWindow;
91 return LIB_ID( m_nickname, m_fpname );
110 static const wxString discount( wxT(
" " ) );
124 return m_unique_pad_count;
141 bool InLibrary(
const wxString& aLibrary )
const;
151 virtual void load() { };
197 typedef std::vector<std::unique_ptr<FOOTPRINT_INFO>>
FPILIST;
237 FOOTPRINT_INFO* GetModuleInfo(
const wxString& aLibNickname,
const wxString& aFootprintName );
251 return m_errors.
size();
256 std::unique_ptr<IO_ERROR> error;
258 m_errors.
pop( error );
274 virtual bool ReadFootprintFiles(
FP_LIB_TABLE* aTable,
const wxString* aNickname =
nullptr,
277 void DisplayErrors( wxTopLevelWindow* aCaller = NULL );
297 virtual void StartWorkers(
FP_LIB_TABLE* aTable, wxString
const* aNickname,
303 virtual bool JoinWorkers() = 0;
308 virtual void StopWorkers() = 0;
348 void Start(
FP_LIB_TABLE* aTable, wxString
const* aNickname =
nullptr,
349 unsigned aNThreads = DEFAULT_THREADS );
376 static constexpr
unsigned DEFAULT_THREADS = 6;
380 #endif // FOOTPRINT_INFO_H_
#define APIEXPORT
Macros which export functions from a DLL/DSO.
int StrNumCmp(const wxString &aString1, const wxString &aString2, bool aIgnoreCase)
Compare two strings with alphanumerical content.
bool pop(T &aReceiver)
Pop a value off the queue into the provided variable.
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.
Class KIWAY is a minimalistic software bus for communications between various DLLs/DSOs (DSOs) within...
virtual const wxString & GetDescription()=0
size_t size() const
Return the size of the queue.