KiCad PCB EDA Suite
|
#include <sim_library_spice.h>
Public Member Functions | |
SIM_LIBRARY_SPICE (bool aForceFullParse) | |
void | ReadFile (const wxString &aFilePath, REPORTER &aReporter) override |
Read library from a source file. | |
SIM_MODEL * | FindModel (const std::string &aModelName) const |
std::vector< MODEL > | GetModels () const |
std::string | GetFilePath () const |
Static Public Member Functions | |
static std::unique_ptr< SIM_LIBRARY > | Create (const wxString &aFilePath, bool aForceFullParse, REPORTER &aReporter, const std::function< wxString(const wxString &, const wxString &)> &aResolver) |
Read library from a source file (e.g. | |
Static Public Attributes | |
static constexpr auto | LIBRARY_FIELD = "Sim.Library" |
static constexpr auto | NAME_FIELD = "Sim.Name" |
Protected Attributes | |
std::vector< std::string > | m_modelNames |
std::vector< std::unique_ptr< SIM_MODEL > > | m_models |
std::function< wxString(const wxString &, const wxString &)> | m_pathResolver |
std::string | m_filePath |
Private Attributes | |
std::unique_ptr< SPICE_LIBRARY_PARSER > | m_spiceLibraryParser |
Friends | |
class | SPICE_LIBRARY_PARSER |
Definition at line 32 of file sim_library_spice.h.
SIM_LIBRARY_SPICE::SIM_LIBRARY_SPICE | ( | bool | aForceFullParse | ) |
Definition at line 29 of file sim_library_spice.cpp.
References m_spiceLibraryParser, SIM_LIBRARY::SIM_LIBRARY(), and SPICE_LIBRARY_PARSER.
|
staticinherited |
Read library from a source file (e.g.
in Spice format), and return a newly constructed object of an appropriate subclass.
aFilePath | Path to the file. |
aReporter | The reporter the library reports to |
aForceFullParse | Caller requires fully parsed models. If false fallback models can be generarted for performance. |
Definition at line 34 of file sim_library.cpp.
References FILEEXT::IbisFileExtension, and library.
Referenced by SIM_LIB_MGR::CreateModel(), and SIM_LIB_MGR::SetLibrary().
|
inherited |
Definition at line 57 of file sim_library.cpp.
References m_modelNames, and m_models.
Referenced by SPICE_MODEL_PARSER::ReadModel(), and SPICE_MODEL_PARSER::ReadType().
|
inlineinherited |
Definition at line 74 of file sim_library.h.
References m_filePath.
|
inherited |
Definition at line 71 of file sim_library.cpp.
References m_modelNames, and result.
|
overridevirtual |
Read library from a source file.
Must be in the format appropriate to the subclass, e.g. Spice for SIM_LIBRARY_SPICE).
aFilePath | Path to the file. |
IO_ERROR | on read or parsing error. |
Implements SIM_LIBRARY.
Definition at line 36 of file sim_library_spice.cpp.
References m_spiceLibraryParser, and SIM_LIBRARY::ReadFile().
|
friend |
Definition at line 35 of file sim_library_spice.h.
References SPICE_LIBRARY_PARSER.
Referenced by SIM_LIBRARY_SPICE(), and SPICE_LIBRARY_PARSER.
|
staticconstexprinherited |
Definition at line 35 of file sim_library.h.
Referenced by SIM_LIB_MGR::CreateModel(), SCH_FIELD::DoHypertextAction(), SPICE_GENERATOR_IBIS::IbisDevice(), SCH_FIELD::IsHypertext(), DIALOG_SIM_MODEL< T >::TransferDataFromWindow(), and DIALOG_SIM_MODEL< T >::TransferDataToWindow().
|
protectedinherited |
Definition at line 82 of file sim_library.h.
Referenced by GetFilePath(), and ReadFile().
|
protectedinherited |
Definition at line 77 of file sim_library.h.
Referenced by FindModel(), GetModels(), and SIM_LIBRARY_IBIS::ReadFile().
|
protectedinherited |
Definition at line 78 of file sim_library.h.
Referenced by FindModel(), and SIM_LIBRARY_IBIS::ReadFile().
|
protectedinherited |
Definition at line 80 of file sim_library.h.
|
private |
Definition at line 43 of file sim_library_spice.h.
Referenced by ReadFile(), and SIM_LIBRARY_SPICE().
|
staticconstexprinherited |
Definition at line 36 of file sim_library.h.
Referenced by SIM_LIB_MGR::CreateModel(), SIM_LIB_MGR::CreateModel(), SPICE_GENERATOR_IBIS::IbisDevice(), DIALOG_SIM_MODEL< T >::loadLibrary(), DIALOG_SIM_MODEL< T >::TransferDataFromWindow(), and DIALOG_SIM_MODEL< T >::TransferDataToWindow().