57 static std::unique_ptr<SIM_LIBRARY>
58 Create(
const wxString& aFilePath,
bool aForceFullParse,
REPORTER& aReporter,
59 const std::function<wxString(
const wxString&,
const wxString& )>& aResolver );
78 std::vector<std::unique_ptr<SIM_MODEL>>
m_models;
A pure virtual class used to derive REPORTER objects from.
std::vector< MODEL > GetModels() const
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.
virtual void ReadFile(const wxString &aFilePath, REPORTER &aReporter)=0
Read library from a source file.
static constexpr auto LIBRARY_FIELD
virtual ~SIM_LIBRARY()=default
std::vector< std::string > m_modelNames
SIM_MODEL * FindModel(const std::string &aModelName) const
std::string GetFilePath() const
std::vector< std::unique_ptr< SIM_MODEL > > m_models
std::function< wxString(const wxString &, const wxString &)> m_pathResolver
static constexpr auto NAME_FIELD