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
 Class PART_LIBS is a collection of PART_LIBs. More...
 
class  PART_LIB
 Class PART_LIB is used to load, save, search, and otherwise manipulate part library files. More...
 

Macros

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

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 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(), and LIB_EDIT_FRAME::SaveOneSymbol().

#define LIB_VERSION_MINOR   3

Definition at line 56 of file class_library.h.

Referenced by SCH_LEGACY_PLUGIN_CACHE::Save(), and LIB_EDIT_FRAME::SaveOneSymbol().

#define LIBFILE_IDENT   "EESchema-LIBRARY Version"

Definition at line 59 of file class_library.h.

Referenced by SCH_LEGACY_PLUGIN_CACHE::Save(), and LIB_EDIT_FRAME::SaveOneSymbol().

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

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 181 of file class_library.h.

typedef std::vector< LIB_ALIAS* > LIB_ALIASES

Definition at line 182 of file class_library.h.

typedef boost::ptr_vector< PART_LIB > PART_LIBS_BASE

Definition at line 183 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.