KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SCH_IO_MGR Class Reference

A factory which returns an instance of a SCH_IO. More...

#include <sch_io_mgr.h>

Inheritance diagram for SCH_IO_MGR:
IO_MGR

Public Member Functions

 DEFINE_ENUM_VECTOR (SCH_FILE_T, { SCH_KICAD, SCH_LEGACY, SCH_ALTIUM, SCH_CADSTAR_ARCHIVE, SCH_DATABASE, SCH_EAGLE, SCH_EASYEDA, SCH_EASYEDAPRO, SCH_EASYEDAPRO_V3, SCH_GEDA, SCH_LTSPICE, SCH_HTTP, SCH_PADS, SCH_DIPTRACE, SCH_PCAD, SCH_ORCAD, SCH_EASYPC, SCH_FILE_UNKNOWN, SCH_NESTED_TABLE }) APIEXPORT static SCH_IO *FindPlugin(SCH_FILE_T aFileType)
 A set of file types that the SCH_IO_MGR knows about, and for which there has been a plugin written, in alphabetical order.
 

Static Public Member Functions

static const wxString ShowType (SCH_FILE_T aFileType)
 Return a brief name for a plugin, given aFileType enum.
 
static SCH_FILE_T EnumFromStr (const wxString &aFileType)
 Return the file type from the corresponding plugin type name: "kicad", "legacy", etc.
 
static SCH_FILE_T GuessPluginTypeFromLibPath (const wxString &aLibPath, int aCtl=0)
 Return a plugin type given a symbol library using the file extension of aLibPath.
 
static SCH_FILE_T GuessPluginTypeFromSchPath (const wxString &aSchematicPath, int aCtl=0)
 Return a plugin type given a schematic using the file extension of aSchematicPath.
 
static bool ConvertLibrary (std::map< std::string, UTF8 > *aOldFileProps, const wxString &aOldFilePath, const wxString &aNewFilepath, REPORTER *aReporter=nullptr)
 Convert a schematic symbol library to the latest KiCad format.
 

Detailed Description

A factory which returns an instance of a SCH_IO.

Definition at line 49 of file sch_io_mgr.h.

Member Function Documentation

◆ ConvertLibrary()

bool SCH_IO_MGR::ConvertLibrary ( std::map< std::string, UTF8 > * aOldFileProps,
const wxString & aOldFilePath,
const wxString & aNewFilepath,
REPORTER * aReporter = nullptr )
static

◆ DEFINE_ENUM_VECTOR()

SCH_IO_MGR::DEFINE_ENUM_VECTOR ( SCH_FILE_T ,
{ SCH_KICAD, SCH_LEGACY, SCH_ALTIUM, SCH_CADSTAR_ARCHIVE, SCH_DATABASE, SCH_EAGLE, SCH_EASYEDA, SCH_EASYEDAPRO, SCH_EASYEDAPRO_V3, SCH_GEDA, SCH_LTSPICE, SCH_HTTP, SCH_PADS, SCH_DIPTRACE, SCH_PCAD, SCH_ORCAD, SCH_EASYPC, SCH_FILE_UNKNOWN, SCH_NESTED_TABLE }  )

A set of file types that the SCH_IO_MGR knows about, and for which there has been a plugin written, in alphabetical order.

Return a SCH_IO plugin which the caller can use to import, export, save, or load design documents.

Parameters
aFileTypeis the file type of which plugin to find.
Returns
the plugin corresponding to aFileType or NULL if not found. Caller owns the returned object.

◆ EnumFromStr()

SCH_IO_MGR::SCH_FILE_T SCH_IO_MGR::EnumFromStr ( const wxString & aFileType)
static

◆ GuessPluginTypeFromLibPath()

◆ GuessPluginTypeFromSchPath()

SCH_IO_MGR::SCH_FILE_T SCH_IO_MGR::GuessPluginTypeFromSchPath ( const wxString & aSchematicPath,
int aCtl = 0 )
static

◆ ShowType()


The documentation for this class was generated from the following files: