62
wxArrayString FP_LIB_TABLE::FootprintEnumerate( const wxString& aNickname )
64
const ROW* row = FindRow( aNickname );
65
wxASSERT( (PLUGIN*) row->plugin );
66
return row->plugin->FootprintEnumerate( row->GetFullURI( true ), row->GetProperties() );
70
MODULE* FP_LIB_TABLE::FootprintLoad( const wxString& aNickname, const wxString& aFootprintName )
72
const ROW* row = FindRow( aNickname );
73
wxASSERT( (PLUGIN*) row->plugin );
74
return row->plugin->FootprintLoad( row->GetFullURI( true ), aFootprintName, row->GetProperties() );
78
void FP_LIB_TABLE::FootprintSave( const wxString& aNickname, const MODULE* aFootprint )
80
const ROW* row = FindRow( aNickname );
81
wxASSERT( (PLUGIN*) row->plugin );
82
return row->plugin->FootprintSave( row->GetFullURI( true ), aFootprint, row->GetProperties() );
86
void FP_LIB_TABLE::FootprintDelete( const wxString& aNickname, const wxString& aFootprintName )
88
const ROW* row = FindRow( aNickname );
89
wxASSERT( (PLUGIN*) row->plugin );
90
return row->plugin->FootprintDelete( row->GetFullURI( true ), aFootprintName, row->GetProperties() );
94
bool FP_LIB_TABLE::IsFootprintLibWritable( const wxString& aNickname )
96
const ROW* row = FindRow( aNickname );
97
wxASSERT( (PLUGIN*) row->plugin );
98
return row->plugin->IsFootprintLibWritable( row->GetFullURI( true ) );
62
102
void FP_LIB_TABLE::Parse( FP_LIB_TABLE_LEXER* in ) throw( IO_ERROR, PARSE_ERROR )
338
const FP_LIB_TABLE::ROW* FP_LIB_TABLE::findRow( const wxString& aNickName )
378
FP_LIB_TABLE::ROW* FP_LIB_TABLE::findRow( const wxString& aNickName ) const
340
FP_LIB_TABLE* cur = this;
380
FP_LIB_TABLE* cur = (FP_LIB_TABLE*) this;
421
461
THROW_IO_ERROR( msg );
464
/* enable this when FP_LIB_TABLE::Footprint*() functions are put into use.
466
row->setPlugin( IO_MGR::PluginFind( row->type ) );
428
PLUGIN* FP_LIB_TABLE::PluginFind( const wxString& aLibraryNickName )
431
const ROW* row = FindRow( aLibraryNickName );
433
// row will never be NULL here.
435
PLUGIN* plugin = IO_MGR::PluginFind( row->type );
441
473
const wxString FP_LIB_TABLE::ExpandSubstitutions( const wxString aString )
443
475
// We reserve the right to do this another way, by providing our own member