50 void SetLibrary(
const wxString& aLibraryPath );
58 const std::vector<T>& aFields );
65 const std::vector<LIB_PIN*>& aPins,
bool aResolved );
69 const std::string& aBaseModelName,
70 const std::vector<T>& aFields,
71 const std::vector<LIB_PIN*>& aPins );
73 void SetModel(
int aIndex, std::unique_ptr<SIM_MODEL> aModel );
75 std::map<wxString, std::reference_wrapper<const SIM_LIBRARY>>
GetLibraries()
const;
76 std::vector<std::reference_wrapper<SIM_MODEL>>
GetModels()
const;
81 const std::string& aRelativeLib );
87 std::vector<std::unique_ptr<SIM_MODEL>>
m_models;
Container for project specific data.
A pure virtual class used to derive REPORTER objects from.
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
std::string ResolveEmbeddedLibraryPath(const std::string &aLibPath, const std::string &aRelativeLib)
void SetModel(int aIndex, std::unique_ptr< SIM_MODEL > aModel)
const PROJECT * m_project
void SetLibrary(const wxString &aLibraryPath)
SIM_LIB_MGR(const PROJECT *aPrj, REPORTER *aReporter=nullptr)
std::vector< std::unique_ptr< SIM_MODEL > > m_models
virtual ~SIM_LIB_MGR()=default
void SetReporter(REPORTER *aReporter)
static wxString ResolveLibraryPath(const wxString &aLibraryPath, const PROJECT *aProject)
std::map< wxString, std::reference_wrapper< const SIM_LIBRARY > > GetLibraries() const
std::vector< std::reference_wrapper< SIM_MODEL > > GetModels() const
SIM_MODEL & CreateModel(SIM_MODEL::TYPE aType, const std::vector< LIB_PIN * > &aPins)
std::map< wxString, std::unique_ptr< SIM_LIBRARY > > m_libraries