KiCad PCB EDA Suite
sch_plugin.cpp File Reference
#include <properties.h>
#include <sch_io_mgr.h>

Go to the source code of this file.

Macros

#define FMT_UNIMPLEMENTED   _( "Plugin '%s' does not implement the '%s' function." )
 

Functions

static void not_implemented (SCH_PLUGIN *aPlugin, const char *aCaller)
 Function not_implemented throws an IO_ERROR and complains of an API function not being implemented. More...
 
static void not_implemented (const SCH_PLUGIN *aPlugin, const char *aCaller)
 

Macro Definition Documentation

#define FMT_UNIMPLEMENTED   _( "Plugin '%s' does not implement the '%s' function." )

Definition at line 27 of file sch_plugin.cpp.

Referenced by not_implemented().

Function Documentation

static void not_implemented ( SCH_PLUGIN aPlugin,
const char *  aCaller 
)
static

Function not_implemented throws an IO_ERROR and complains of an API function not being implemented.

Parameters
aPluginis a SCH_PLUGIN instance
aCalleris the name of the unimplemented API function.

Definition at line 36 of file sch_plugin.cpp.

References FMT_UNIMPLEMENTED, Format(), SCH_PLUGIN::GetName(), and THROW_IO_ERROR.

Referenced by SCH_PLUGIN::CreateSymbolLib(), SCH_PLUGIN::DeleteAlias(), SCH_PLUGIN::DeleteSymbol(), SCH_PLUGIN::DeleteSymbolLib(), SCH_PLUGIN::EnumerateSymbolLib(), SCH_PLUGIN::GetSymbolLibCount(), SCH_PLUGIN::IsSymbolLibWritable(), SCH_PLUGIN::Load(), SCH_PLUGIN::LoadSymbol(), SCH_PLUGIN::Save(), SCH_PLUGIN::SaveLibrary(), and SCH_PLUGIN::SaveSymbol().

37 {
39  aPlugin->GetName().GetData(),
40  wxString::FromUTF8( aCaller ).GetData() ) );
41 }
virtual const wxString GetName() const =0
Function GetName returns a brief hard coded name for this SCH_PLUGIN.
#define FMT_UNIMPLEMENTED
Definition: sch_plugin.cpp:27
#define THROW_IO_ERROR(x)
Definition: utf8.cpp:60
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, CPTREE &aTree)
Function Format outputs a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
Definition: ptree.cpp:205
static void not_implemented ( const SCH_PLUGIN aPlugin,
const char *  aCaller 
)
static

Definition at line 44 of file sch_plugin.cpp.

References FMT_UNIMPLEMENTED, Format(), SCH_PLUGIN::GetName(), and THROW_IO_ERROR.

45 {
47  aPlugin->GetName().GetData(),
48  wxString::FromUTF8( aCaller ).GetData() ) );
49 }
virtual const wxString GetName() const =0
Function GetName returns a brief hard coded name for this SCH_PLUGIN.
#define FMT_UNIMPLEMENTED
Definition: sch_plugin.cpp:27
#define THROW_IO_ERROR(x)
Definition: utf8.cpp:60
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, CPTREE &aTree)
Function Format outputs a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
Definition: ptree.cpp:205