84 virtual void SaveLibrary(
const wxString& aFileName,
85 const std::map<std::string, UTF8>* aProperties =
nullptr );
117 const std::map<std::string, UTF8>* aProperties =
nullptr );
146 const std::map<std::string, UTF8>* aProperties =
nullptr );
164 virtual void EnumerateSymbolLib( wxArrayString& aSymbolNameList,
const wxString& aLibraryPath,
165 const std::map<std::string, UTF8>* aProperties =
nullptr );
187 const wxString& aLibraryPath,
188 const std::map<std::string, UTF8>* aProperties =
nullptr );
212 const std::map<std::string, UTF8>* aProperties =
nullptr );
236 const std::map<std::string, UTF8>* aProperties =
nullptr );
256 virtual void DeleteSymbol(
const wxString& aLibraryPath,
const wxString& aSymbolName,
257 const std::map<std::string, UTF8>* aProperties =
nullptr );
283 virtual void GetLibraryOptions( std::map<std::string, UTF8>* aListToAppendTo )
const override;
351 virtual const wxString&
GetError()
const;
Define a library symbol object.
Holds all the data relating to one schematic.
Base class that schematic file and library loading and saving plugins should derive from.
virtual void EnumerateSymbolLib(wxArrayString &aSymbolNameList, const wxString &aLibraryPath, const std::map< std::string, UTF8 > *aProperties=nullptr)
Populate a list of LIB_SYMBOL alias names contained within the library aLibraryPath.
virtual void SetLibTable(SYMBOL_LIB_TABLE *aTable)
Some library plugins need to have access to their parent library table.
virtual bool SupportsSubLibraries() const
virtual bool CanReadSchematicFile(const wxString &aFileName) const
Checks if this SCH_IO can read the specified schematic file.
virtual int GetModifyHash() const =0
Return the modification hash from the library cache.
SCH_IO(const wxString &aName)
virtual SCH_SHEET * LoadSchematicFile(const wxString &aFileName, SCHEMATIC *aSchematic, SCH_SHEET *aAppendToMe=nullptr, const std::map< std::string, UTF8 > *aProperties=nullptr)
Load information from some input file format that this SCH_IO implementation knows about,...
virtual void SaveSymbol(const wxString &aLibraryPath, const LIB_SYMBOL *aSymbol, const std::map< std::string, UTF8 > *aProperties=nullptr)
Write aSymbol to an existing library located at aLibraryPath.
virtual void GetAvailableSymbolFields(std::vector< wxString > &aNames)
Retrieves a list of (custom) field names that are present on symbols in this library.
virtual void DeleteSymbol(const wxString &aLibraryPath, const wxString &aSymbolName, const std::map< std::string, UTF8 > *aProperties=nullptr)
Delete the entire LIB_SYMBOL associated with aAliasName from the library aLibraryPath.
virtual void SaveLibrary(const wxString &aFileName, const std::map< std::string, UTF8 > *aProperties=nullptr)
virtual LIB_SYMBOL * LoadSymbol(const wxString &aLibraryPath, const wxString &aPartName, const std::map< std::string, UTF8 > *aProperties=nullptr)
Load a LIB_SYMBOL object having aPartName from the aLibraryPath containing a library format that this...
virtual void GetLibraryOptions(std::map< std::string, UTF8 > *aListToAppendTo) const override
Append supported SCH_IO options to aListToAppenTo along with internationalized descriptions.
virtual void SaveSchematicFile(const wxString &aFileName, SCH_SHEET *aSheet, SCHEMATIC *aSchematic, const std::map< std::string, UTF8 > *aProperties=nullptr)
Write aSchematic to a storage file in a format that this SCH_IO implementation knows about,...
virtual const wxString & GetError() const
Return an error string to the caller.
virtual wxString GetSubLibraryDescription(const wxString &aName)
Gets a description of a sublibrary.
virtual void GetDefaultSymbolFields(std::vector< wxString > &aNames)
Retrieves a list of (custom) field names that should be shown by default for this library in the symb...
virtual const IO_BASE::IO_FILE_DESC GetSchematicFileDesc() const
Returns schematic file description for the SCH_IO.
virtual void GetSubLibraryNames(std::vector< wxString > &aNames)
Retrieves a list of sub-libraries in this library.
Sheet symbol placed in a schematic, and is the entry point for a sub schematic.
Some functions to handle hotkeys in KiCad.
Container that describes file type info.