KiCad PCB EDA Suite
plugin.cpp File Reference
#include <io_mgr.h>
#include <string_utf8_map.h>
#include <wx/translation.h>

Go to the source code of this file.


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


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


#define FMT_UNIMPLEMENTED   wxT( "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 

Throw an IO_ERROR and complains of an API function not being implemented.

aPluginis a PLUGIN instance.
aCalleris the name of the unimplemented API function.

Definition at line 38 of file plugin.cpp.

41 aPlugin->PluginName(),
42 wxString::FromUTF8( aCaller ) ) );
virtual const wxString PluginName() const =0
Return a brief hard coded name for this PLUGIN.
#define THROW_IO_ERROR(msg)
Definition: ki_exception.h:38
Definition: plugin.cpp:30
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

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().