KiCad PCB EDA Suite
class_library.h File Reference

Definition for part library class. More...

#include <map>
#include <boost/ptr_container/ptr_vector.hpp>
#include <wx/filename.h>
#include <sch_io_mgr.h>
#include <project.h>

Go to the source code of this file.


struct  LibPartMapSort
 LIB_PART map sorting. More...
class  PART_LIBS
 A collection of PART_LIB objects. More...
class  PART_LIB
 Object used to load, save, search, and otherwise manipulate symbol library files. More...


#define DOC_EXT   "dcm"
#define LIBFILE_IDENT   "EESchema-LIBRARY Version"
#define LIB_VERSION(major, minor)   ( major * 100 + minor )
#define IS_LIB_CURRENT_VERSION(major, minor)
#define USE_OLD_DOC_FILE_FORMAT(major, minor)   ( LIB_VERSION( major, minor ) <= LIB_VERSION( 2, 4 ) )


typedef std::map< wxString, LIB_PART *, LibPartMapSortLIB_PART_MAP
 Part map used by part library object. More...
typedef std::vector< LIB_PART * > LIB_PARTS
typedef boost::ptr_vector< PART_LIBPART_LIBS_BASE


bool operator== (const PART_LIB &aLibrary, const wxString &aName)
 Case insensitive library name comparison. More...
bool operator!= (const PART_LIB &aLibrary, const wxString &aName)

Detailed Description

Definition for part library class.

Definition in file class_library.h.

Macro Definition Documentation


#define DOC_EXT   "dcm"

Definition at line 49 of file class_library.h.


#define IS_LIB_CURRENT_VERSION (   major,
( \
LIB_VERSION( major1, minor1 ) == \
Definition: class_library.h:55
Definition: class_library.h:54

Definition at line 62 of file class_library.h.


#define LIB_VERSION (   major,
)    ( major * 100 + minor )

Definition at line 60 of file class_library.h.



Definition at line 54 of file class_library.h.



Definition at line 55 of file class_library.h.


#define LIBFILE_IDENT   "EESchema-LIBRARY Version"

Definition at line 58 of file class_library.h.


#define USE_OLD_DOC_FILE_FORMAT (   major,
)    ( LIB_VERSION( major, minor ) <= LIB_VERSION( 2, 4 ) )

Definition at line 74 of file class_library.h.

Typedef Documentation


typedef std::map< wxString, LIB_PART*, LibPartMapSort > LIB_PART_MAP

Part map used by part library object.

Definition at line 177 of file class_library.h.


typedef std::vector< LIB_PART* > LIB_PARTS

Definition at line 178 of file class_library.h.


typedef boost::ptr_vector< PART_LIB > PART_LIBS_BASE

Definition at line 179 of file class_library.h.

Function Documentation

◆ operator!=()

bool operator!= ( const PART_LIB aLibrary,
const wxString &  aName 

◆ operator==()

bool operator== ( const PART_LIB aLibrary,
const wxString &  aName 

Case insensitive library name comparison.

Referenced by unfracture(), and SHAPE_POLY_SET::unfractureSingle().