KiCad PCB EDA Suite
Loading...
Searching...
No Matches
design_block_lib_table.cpp File Reference
#include <kiface_base.h>
#include <env_vars.h>
#include <design_block_info.h>
#include <lib_id.h>
#include <lib_table_lexer.h>
#include <paths.h>
#include <pgm_base.h>
#include <search_stack.h>
#include <settings/kicad_settings.h>
#include <settings/settings_manager.h>
#include <systemdirsappend.h>
#include <design_block_lib_table.h>
#include <design_block.h>
#include <wx/dir.h>
#include <wx/hash.h>

Go to the source code of this file.

Classes

class  PCM_DESIGN_BLOCK_LIB_TRAVERSER
 

Macros

#define OPT_SEP   '|'
 options separator character
 

Functions

static void setLibNickname (DESIGN_BLOCK *aModule, const wxString &aNickname, const wxString &aDesignBlockName)
 

Variables

DESIGN_BLOCK_LIB_TABLE GDesignBlockTable
 The global design block library table.
 
DESIGN_BLOCK_LIST_IMPL GDesignBlockList
 The global footprint info table.
 
static const wxChar global_tbl_name [] = wxT( "design-block-lib-table" )
 

Macro Definition Documentation

◆ OPT_SEP

#define OPT_SEP   '|'

options separator character

Definition at line 42 of file design_block_lib_table.cpp.

Function Documentation

◆ setLibNickname()

static void setLibNickname ( DESIGN_BLOCK aModule,
const wxString &  aNickname,
const wxString &  aDesignBlockName 
)
static

Variable Documentation

◆ GDesignBlockList

DESIGN_BLOCK_LIST_IMPL GDesignBlockList

The global footprint info table.

This is performance-intensive to build so we keep a hash-stamped global version. Any deviation from the request vs. stored hash will result in it being rebuilt.

Definition at line 52 of file design_block_lib_table.cpp.

Referenced by DESIGN_BLOCK_LIB_TABLE::GetGlobalList().

◆ GDesignBlockTable

DESIGN_BLOCK_LIB_TABLE GDesignBlockTable

The global design block library table.

This is not dynamically allocated because in a multiple project environment we must keep its address constant (since it is the fallback table for multiple projects).

Definition at line 47 of file design_block_lib_table.cpp.

Referenced by DESIGN_BLOCK_LIB_TABLE::GetGlobalLibTable().

◆ global_tbl_name