KiCad PCB EDA Suite
class_libentry.h File Reference

Class LIB_ITEM definition. More...

#include <general.h>
#include <lib_id.h>
#include <lib_draw_item.h>
#include <lib_field.h>
#include <vector>
#include <multivector.h>

Go to the source code of this file.

Classes

class  LIB_ALIAS
 Part library alias object definition. More...
 
struct  PART_DRAW_OPTIONS
 
class  LIB_PART
 Define a library symbol object. More...
 

Typedefs

typedef std::vector< LIB_ALIAS * > LIB_ALIASES
 
typedef std::shared_ptr< LIB_PARTPART_SPTR
 shared pointer to LIB_PART More...
 
typedef std::weak_ptr< LIB_PARTPART_REF
 weak pointer to LIB_PART More...
 
typedef MULTIVECTOR< LIB_ITEM, LIB_ARC_T, LIB_FIELD_TLIB_ITEMS_CONTAINER
 
typedef LIB_ITEMS_CONTAINER::ITEM_PTR_VECTOR LIB_ITEMS
 

Enumerations

enum  LIBRENTRYOPTIONS { ENTRY_NORMAL, ENTRY_POWER }
 

Functions

bool operator< (const LIB_ALIAS &aItem1, const LIB_ALIAS &aItem2)
 
int LibraryEntryCompare (const LIB_ALIAS *aItem1, const LIB_ALIAS *aItem2)
 

Variables

const wxChar traceSchLibMem []
 Flag to enable schematic library memory deletion debug output. More...
 

Detailed Description

Class LIB_ITEM definition.

Class LIB_PIN definition.

Definition in file class_libentry.h.

Typedef Documentation

typedef std::vector<LIB_ALIAS*> LIB_ALIASES

Definition at line 46 of file class_libentry.h.

typedef std::weak_ptr<LIB_PART> PART_REF

weak pointer to LIB_PART

Definition at line 51 of file class_libentry.h.

typedef std::shared_ptr<LIB_PART> PART_SPTR

shared pointer to LIB_PART

Definition at line 50 of file class_libentry.h.

Enumeration Type Documentation

Enumerator
ENTRY_NORMAL 
ENTRY_POWER 

Definition at line 57 of file class_libentry.h.

58 {
59  ENTRY_NORMAL, // Libentry is a standard part (real or alias)
60  ENTRY_POWER // Libentry is a power symbol
61 };

Function Documentation

int LibraryEntryCompare ( const LIB_ALIAS aItem1,
const LIB_ALIAS aItem2 
)

Definition at line 135 of file class_libentry.cpp.

References LIB_ALIAS::GetName().

136 {
137  return aItem1->GetName().Cmp( aItem2->GetName() );
138 }
const wxString & GetName() const
bool operator< ( const LIB_ALIAS aItem1,
const LIB_ALIAS aItem2 
)

Definition at line 129 of file class_libentry.cpp.

References LIB_ALIAS::GetName().

130 {
131  return aItem1.GetName() < aItem2.GetName();
132 }
const wxString & GetName() const