23#ifndef SCH_IO_ORCAD_H_
24#define SCH_IO_ORCAD_H_
47 SCH_IO( wxS(
"OrCAD Schematic" ) )
73 const std::map<std::string, UTF8>* aProperties =
nullptr )
override;
77 const std::map<std::string, UTF8>* aProperties =
nullptr )
override;
79 void EnumerateSymbolLib( std::vector<LIB_SYMBOL*>& aSymbolList,
const wxString& aLibraryPath,
80 const std::map<std::string, UTF8>* aProperties =
nullptr )
override;
83 const std::map<std::string, UTF8>* aProperties =
nullptr )
override;
90 const std::vector<std::unique_ptr<LIB_SYMBOL>>&
loadOlbSymbols(
const wxString& aLibraryPath );
92 std::map<wxString, std::vector<std::unique_ptr<LIB_SYMBOL>>>
m_libCache;
REPORTER * m_reporter
Reporter to log errors/warnings to, may be nullptr.
Define a library symbol object.
Holds all the data relating to one schematic.
const std::vector< std::unique_ptr< LIB_SYMBOL > > & loadOlbSymbols(const wxString &aLibraryPath)
Parse an .OLB and build its KiCad library symbols, cached by library path.
std::map< wxString, std::vector< std::unique_ptr< LIB_SYMBOL > > > m_libCache
bool IsLibraryWritable(const wxString &aLibraryPath) override
Return true if the library at aLibraryPath is writable.
bool CanReadSchematicFile(const wxString &aFileName) const override
The .dsn extension also identifies SPECCTRA files.
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,...
bool CanReadLibrary(const wxString &aFileName) const override
Checks if this IO object can read the specified library file/directory.
LIB_SYMBOL * LoadSymbol(const wxString &aLibraryPath, const wxString &aAliasName, const std::map< std::string, UTF8 > *aProperties=nullptr) override
Load a LIB_SYMBOL object having aPartName from the aLibraryPath containing a library format that this...
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.
const IO_BASE::IO_FILE_DESC GetSchematicFileDesc() const override
Returns schematic file description for the SCH_IO.
int GetModifyHash() const override
Return the modification hash from the library cache.
const IO_BASE::IO_FILE_DESC GetLibraryDesc() const override
Get the descriptor for the library container that this IO plugin operates on.
SCH_IO(const wxString &aName)
Sheet symbol placed in a schematic, and is the entry point for a sub schematic.
static REPORTER & GetInstance()
std::string OrcadNormalizeCfbName(const std::string &aName)
Container that describes file type info.