KiCad PCB EDA Suite
plugin.cpp File Reference
#include <io_mgr.h>
#include <properties.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 (PLUGIN *aPlugin, const char *aCaller)
 Function not_implemented throws an IO_ERROR and complains of an API function not being implemented. More...
 

Macro Definition Documentation

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

Definition at line 29 of file plugin.cpp.

Referenced by not_implemented().

Function Documentation

static void not_implemented ( 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 PLUGIN instance
aCalleris the name of the unimplemented API function.

Definition at line 38 of file plugin.cpp.

References FMT_UNIMPLEMENTED, Format(), PLUGIN::PluginName(), and THROW_IO_ERROR.

Referenced by PLUGIN::FootprintDelete(), PLUGIN::FootprintEnumerate(), PLUGIN::FootprintLibCreate(), PLUGIN::FootprintLibDelete(), PLUGIN::FootprintLoad(), PLUGIN::FootprintSave(), PLUGIN::IsFootprintLibWritable(), PLUGIN::Load(), and PLUGIN::Save().

39 {
41  aPlugin->PluginName().GetData(),
42  wxString::FromUTF8( aCaller ).GetData() )
43  );
44 }
#define FMT_UNIMPLEMENTED
Definition: plugin.cpp:29
virtual const wxString PluginName() const =0
Function PluginName returns a brief hard coded name for this PLUGIN.
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
#define THROW_IO_ERROR(msg)
Definition: ki_exception.h:38