KiCad PCB EDA Suite
plugin.cpp File Reference
#include <io_mgr.h>
#include <properties.h>
#include <wx/translation.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)
 Throw an IO_ERROR and complains of an API function not being implemented. More...
 

Macro Definition Documentation

◆ FMT_UNIMPLEMENTED

#define FMT_UNIMPLEMENTED   "Plugin \"%s\" does not implement the \"%s\" function."

Definition at line 30 of file plugin.cpp.

Function Documentation

◆ not_implemented()

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

Throw 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.

39 {
41  aPlugin->PluginName(),
42  wxString::FromUTF8( aCaller ) ) );
43 }
#define FMT_UNIMPLEMENTED
Definition: plugin.cpp:30
virtual const wxString PluginName() const =0
Return a brief hard coded name for this PLUGIN.
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
Definition: ptree.cpp:200
#define THROW_IO_ERROR(msg)
Definition: ki_exception.h:38

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::GetImportedCachedLibraryFootprints(), PLUGIN::IsFootprintLibWritable(), PLUGIN::Load(), and PLUGIN::Save().