25#ifndef LIB_TREE_ITEM_H 
   26#define LIB_TREE_ITEM_H 
   59    virtual std::vector<SEARCH_TERM> 
GetSearchTerms() { 
return std::vector<SEARCH_TERM>(); }
 
   64    virtual bool IsRoot()
 const { 
return true; }
 
   84    virtual wxString 
GetUnitName( 
int aUnit )
 const { 
return wxEmptyString; }
 
 
A logical library item identifier and consists of various portions much like a URI.
 
A mix-in to provide polymorphism between items stored in libraries (symbols, aliases and footprints).
 
virtual wxString GetLibNickname() const =0
 
virtual int GetSubUnitCount() const
For items with units, return the number of units.
 
virtual wxString GetUnitName(int aUnit) const
For items with units, return an identifier for unit x.
 
virtual std::vector< SEARCH_TERM > GetSearchTerms()
 
virtual wxString GetFootprint()
For items with footprint fields.
 
virtual LIB_ID GetLIB_ID() const =0
 
virtual wxString GetDesc()=0
 
virtual bool IsRoot() const
For items having aliases, IsRoot() indicates the principal item.
 
virtual wxString GetName() const =0
 
virtual int GetPinCount()
The pin count for symbols or the unique pad count for footprints.
 
virtual void GetChooserFields(std::map< wxString, wxString > &aColumnMap)
Retrieves a key/value map of the fields on this item that should be exposed to the library browser/ch...
 
Abstract pattern-matching tool and implementations.
 
#define APIEXPORT
Macros which export functions from a DLL/DSO.