20#ifndef SCH_IO_EASYPC_H_
21#define SCH_IO_EASYPC_H_
64 const std::map<std::string, UTF8>* aProperties =
nullptr )
override;
66 void EnumerateSymbolLib( std::vector<LIB_SYMBOL*>& aSymbolList,
const wxString& aLibraryPath,
67 const std::map<std::string, UTF8>* aProperties =
nullptr )
override;
71 const std::map<std::string, UTF8>* aProperties =
nullptr )
override;
78 const std::map<std::string, UTF8>* aProperties =
nullptr )
override;
86 std::unique_ptr<EASYPC::LIBRARY_FILE>
File;
87 std::map<wxString, std::unique_ptr<LIB_SYMBOL>>
Symbols;
93 const wxString& aName );
A library parsed once; items are then served by name without reading the file again.
Define a library symbol object.
Holds all the data relating to one schematic.
bool IsLibraryWritable(const wxString &aLibraryPath) override
Return true if the library at aLibraryPath is writable.
const IO_BASE::IO_FILE_DESC GetSchematicFileDesc() const override
Returns schematic file description for the SCH_IO.
bool CanReadLibrary(const wxString &aFileName) const override
Checks if this IO object can read the specified library file/directory.
SCH_SHEET * LoadSchematicFile(const wxString &aFileName, SCHEMATIC *aSchematic, SCH_SHEET *aAppendToMe=nullptr, const std::map< std::string, UTF8 > *aProperties=nullptr) override
Load information from some input file format that this SCH_IO implementation knows about,...
const IO_BASE::IO_FILE_DESC GetLibraryDesc() const override
Get the descriptor for the library container that this IO plugin operates on.
bool CanReadSchematicFile(const wxString &aFileName) const override
Checks if this SCH_IO can read the specified schematic file.
int GetModifyHash() const override
Return the modification hash from the library cache.
std::unique_ptr< LIB_SYMBOL > convertComponent(const LIBRARY &aLib, const wxString &aLibraryPath, const wxString &aName)
LIB_SYMBOL * LoadSymbol(const wxString &aLibraryPath, const wxString &aPartName, const std::map< std::string, UTF8 > *aProperties=nullptr) override
Converted on first use and owned by the plugin until the file changes.
void EnumerateSymbolLib(wxArrayString &aSymbolNameList, const wxString &aLibraryPath, const std::map< std::string, UTF8 > *aProperties=nullptr) override
Populate a list of LIB_SYMBOL alias names contained within the library aLibraryPath.
std::map< wxString, LIBRARY > m_libraries
SCH_IO(const wxString &aName)
Sheet symbol placed in a schematic, and is the entry point for a sub schematic.
Container that describes file type info.
std::unique_ptr< EASYPC::LIBRARY_FILE > File
std::map< wxString, std::unique_ptr< LIB_SYMBOL > > Symbols