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 <lib_items.h>
#include <vector>

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
 Class LIB_PART defines a library part 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...
 

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 []
 WXTRACE value 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 55 of file class_libentry.h.

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

Function Documentation

int LibraryEntryCompare ( const LIB_ALIAS aItem1,
const LIB_ALIAS aItem2 
)

Definition at line 164 of file class_libentry.cpp.

References LIB_ALIAS::GetName().

165 {
166  return aItem1->GetName().Cmp( aItem2->GetName() );
167 }
const wxString & GetName() const
bool operator< ( const LIB_ALIAS aItem1,
const LIB_ALIAS aItem2 
)

Definition at line 158 of file class_libentry.cpp.

References LIB_ALIAS::GetName().

159 {
160  return aItem1.GetName() < aItem2.GetName();
161 }
const wxString & GetName() const

Variable Documentation

const wxChar traceSchLibMem[]

WXTRACE value to enable schematic library memory deletion debug output.

Definition at line 63 of file class_libentry.cpp.

Referenced by LIB_PART::RemoveAlias(), LIB_ALIAS::~LIB_ALIAS(), and LIB_PART::~LIB_PART().