#include <sim_library_spice.h>
|
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.
|
|
Definition at line 32 of file sim_library_spice.h.
◆ SIM_LIBRARY_SPICE()
SIM_LIBRARY_SPICE::SIM_LIBRARY_SPICE |
( |
bool |
aForceFullParse | ) |
|
◆ Create()
std::unique_ptr< SIM_LIBRARY > SIM_LIBRARY::Create |
( |
const wxString & |
aFilePath, |
|
|
bool |
aForceFullParse, |
|
|
REPORTER & |
aReporter, |
|
|
const std::function< wxString(const wxString &, const wxString &)> & |
aResolver |
|
) |
| |
|
staticinherited |
Read library from a source file (e.g.
in Spice format), and return a newly constructed object of an appropriate subclass.
- Parameters
-
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. |
- Returns
- The library loaded in a newly constructed object.
Definition at line 33 of file sim_library.cpp.
References library.
Referenced by SIM_LIB_MGR::CreateModel(), and SIM_LIB_MGR::SetLibrary().
◆ FindModel()
SIM_MODEL * SIM_LIBRARY::FindModel |
( |
const std::string & |
aModelName | ) |
const |
|
inherited |
◆ GetFilePath()
std::string SIM_LIBRARY::GetFilePath |
( |
| ) |
const |
|
inlineinherited |
◆ GetModels()
◆ ReadFile()
void SIM_LIBRARY_SPICE::ReadFile |
( |
const wxString & |
aFilePath, |
|
|
REPORTER & |
aReporter |
|
) |
| |
|
overridevirtual |
◆ SPICE_LIBRARY_PARSER
◆ LIBRARY_FIELD
constexpr auto SIM_LIBRARY::LIBRARY_FIELD = "Sim.Library" |
|
staticconstexprinherited |
◆ m_filePath
std::string SIM_LIBRARY::m_filePath |
|
protectedinherited |
◆ m_modelNames
std::vector<std::string> SIM_LIBRARY::m_modelNames |
|
protectedinherited |
◆ m_models
std::vector<std::unique_ptr<SIM_MODEL> > SIM_LIBRARY::m_models |
|
protectedinherited |
◆ m_pathResolver
std::function<wxString( const wxString&, const wxString& )> SIM_LIBRARY::m_pathResolver |
|
protectedinherited |
◆ m_spiceLibraryParser
◆ NAME_FIELD
constexpr auto SIM_LIBRARY::NAME_FIELD = "Sim.Name" |
|
staticconstexprinherited |
The documentation for this class was generated from the following files: