59 const std::vector<SCH_FIELD>& aFields,
bool aResolve,
int aDepth,
64 int aDepth,
const wxString& aVariantName,
65 const wxString& aMergedSimPins = wxEmptyString );
74 bool aResolve,
int aDepth,
const wxString& aVariantName,
75 REPORTER& aReporter,
const wxString& aMergedSimPins = wxEmptyString );
78 std::span<const wxString> aPins,
REPORTER& aReporter );
81 const std::vector<SCH_FIELD>& aFields,
bool aResolve,
int aDepth,
82 std::span<const wxString> aPins,
REPORTER& aReporter );
84 void SetModel(
int aIndex, std::unique_ptr<SIM_MODEL> aModel );
86 std::map<wxString, std::reference_wrapper<const SIM_LIBRARY>>
GetLibraries()
const;
87 std::vector<std::reference_wrapper<SIM_MODEL>>
GetModels()
const;
95 std::span<const wxString> aPins,
REPORTER& aReporter,
96 bool aAllowRawFallback );
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...
void SetModel(int aIndex, std::unique_ptr< SIM_MODEL > aModel)
SIM_LIBRARY::MODEL createModel(const std::vector< SCH_FIELD > &aFields, bool aResolve, int aDepth, std::span< const wxString > aPins, REPORTER &aReporter, bool aAllowRawFallback)
wxString ResolveLibraryPath(const wxString &aLibraryPath, REPORTER &aReporter)
const PROJECT * m_project
std::vector< EMBEDDED_FILES * > m_embeddedFilesStack
SIM_LIB_MGR(const PROJECT *aPrj)
std::vector< std::unique_ptr< SIM_MODEL > > m_models
virtual ~SIM_LIB_MGR()=default
SIM_MODEL & CreateModel(SIM_MODEL::TYPE aType, std::span< const wxString > aPins, REPORTER &aReporter)
std::map< wxString, std::reference_wrapper< const SIM_LIBRARY > > GetLibraries() const
wxString ResolveEmbeddedLibraryPath(const wxString &aLibPath, const wxString &aRelativeLib, REPORTER &aReporter)
std::vector< std::reference_wrapper< SIM_MODEL > > GetModels() const
static SIM_MODEL_INPUT CaptureModelInput(const SCH_SHEET_PATH *aSheetPath, const SCH_SYMBOL &aSymbol, int aDepth, const wxString &aVariantName, const wxString &aMergedSimPins=wxEmptyString)
Resolve instance fields once; editors use the field-based overloads for unresolved input.
void SetLibrary(const wxString &aLibraryPath, REPORTER &aReporter)
std::map< wxString, std::unique_ptr< SIM_LIBRARY > > m_libraries
void SetFilesStack(std::vector< EMBEDDED_FILES * > aFilesStack)