KiCad PCB EDA Suite
class_library.h File Reference

Definition for part library class. More...

#include <wx/filename.h>
#include <class_libentry.h>
#include <sch_io_mgr.h>
#include <project.h>
#include <map>

Go to the source code of this file.

Classes

class  SCHLIB_FILTER
 
struct  AliasMapSort
 LIB_ALIAS 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...
 

Macros

#define DOC_EXT   "dcm"
 
#define LIB_VERSION_MAJOR   2
 
#define LIB_VERSION_MINOR   4
 
#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 ) )
 

Typedefs

typedef std::map< wxString, LIB_ALIAS *, AliasMapSortLIB_ALIAS_MAP
 Alias map used by part library object. More...
 
typedef std::vector< LIB_ALIAS * > LIB_ALIASES
 
typedef boost::ptr_vector< PART_LIBPART_LIBS_BASE
 

Functions

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"
#define IS_LIB_CURRENT_VERSION (   major,
  minor 
)
Value:
( \
LIB_VERSION( major1, minor1 ) == \
)
#define LIB_VERSION_MINOR
Definition: class_library.h:56
#define LIB_VERSION(major, minor)
Definition: class_library.h:61
#define LIB_VERSION_MAJOR
Definition: class_library.h:55

Definition at line 63 of file class_library.h.

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

Definition at line 55 of file class_library.h.

Referenced by SCH_LEGACY_PLUGIN_CACHE::Save().

#define LIB_VERSION_MINOR   4

Definition at line 56 of file class_library.h.

Referenced by SCH_LEGACY_PLUGIN_CACHE::Save().

#define LIBFILE_IDENT   "EESchema-LIBRARY Version"

Definition at line 59 of file class_library.h.

Referenced by SCH_LEGACY_PLUGIN_CACHE::Save().

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

Definition at line 75 of file class_library.h.

Referenced by SCH_LEGACY_PLUGIN_CACHE::Load().

Typedef Documentation

typedef std::map< wxString, LIB_ALIAS*, AliasMapSort > LIB_ALIAS_MAP

Alias map used by part library object.

Definition at line 178 of file class_library.h.

typedef std::vector< LIB_ALIAS* > LIB_ALIASES

Definition at line 179 of file class_library.h.

typedef boost::ptr_vector< PART_LIB > PART_LIBS_BASE

Definition at line 180 of file class_library.h.

Function Documentation

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

Case insensitive library name comparison.

Referenced by SHAPE_POLY_SET::unfractureSingle().