KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SIM_LIB_MGR Class Reference

#include <sim_lib_mgr.h>

Public Member Functions

 SIM_LIB_MGR (const PROJECT *aPrj)
 
virtual ~SIM_LIB_MGR ()=default
 
void SetForceFullParse ()
 
void Clear ()
 
void SetLibrary (const wxString &aLibraryPath, REPORTER &aReporter)
 
SIM_MODELCreateModel (SIM_MODEL::TYPE aType, const std::vector< SCH_PIN * > &aPins, REPORTER &aReporter)
 
SIM_MODELCreateModel (const SIM_MODEL *aBaseModel, const std::vector< SCH_PIN * > &aPins, REPORTER &aReporter)
 
SIM_MODELCreateModel (const SIM_MODEL *aBaseModel, const std::vector< SCH_PIN * > &aPins, const std::vector< SCH_FIELD > &aFields, REPORTER &aReporter)
 
SIM_LIBRARY::MODEL CreateModel (const SCH_SHEET_PATH *aSheetPath, SCH_SYMBOL &aSymbol, REPORTER &aReporter)
 
SIM_LIBRARY::MODEL CreateModel (const std::vector< SCH_FIELD > &aFields, const std::vector< SCH_PIN * > &aPins, bool aResolved, REPORTER &aReporter)
 
SIM_LIBRARY::MODEL CreateModel (const wxString &aLibraryPath, const std::string &aBaseModelName, const std::vector< SCH_FIELD > &aFields, const std::vector< SCH_PIN * > &aPins, REPORTER &aReporter)
 
void SetModel (int aIndex, std::unique_ptr< SIM_MODEL > aModel)
 
std::map< wxString, std::reference_wrapper< const SIM_LIBRARY > > GetLibraries () const
 
std::vector< std::reference_wrapper< SIM_MODEL > > GetModels () const
 
wxString ResolveEmbeddedLibraryPath (const wxString &aLibPath, const wxString &aRelativeLib, REPORTER &aReporter)
 

Static Public Member Functions

static wxString ResolveLibraryPath (const wxString &aLibraryPath, const PROJECT *aProject, REPORTER &aReporter)
 

Private Attributes

const PROJECTm_project
 
bool m_forceFullParse
 
std::map< wxString, std::unique_ptr< SIM_LIBRARY > > m_libraries
 
std::vector< std::unique_ptr< SIM_MODEL > > m_models
 

Detailed Description

Definition at line 38 of file sim_lib_mgr.h.

Constructor & Destructor Documentation

◆ SIM_LIB_MGR()

SIM_LIB_MGR::SIM_LIB_MGR ( const PROJECT aPrj)

Definition at line 42 of file sim_lib_mgr.cpp.

◆ ~SIM_LIB_MGR()

virtual SIM_LIB_MGR::~SIM_LIB_MGR ( )
virtualdefault

Member Function Documentation

◆ Clear()

void SIM_LIB_MGR::Clear ( )

Definition at line 49 of file sim_lib_mgr.cpp.

References m_libraries, and m_models.

Referenced by SetLibrary().

◆ CreateModel() [1/6]

◆ CreateModel() [2/6]

SIM_MODEL & SIM_LIB_MGR::CreateModel ( const SIM_MODEL aBaseModel,
const std::vector< SCH_PIN * > &  aPins,
const std::vector< SCH_FIELD > &  aFields,
REPORTER aReporter 
)

Definition at line 169 of file sim_lib_mgr.cpp.

References SIM_MODEL::Create(), and m_models.

◆ CreateModel() [3/6]

SIM_MODEL & SIM_LIB_MGR::CreateModel ( const SIM_MODEL aBaseModel,
const std::vector< SCH_PIN * > &  aPins,
REPORTER aReporter 
)

Definition at line 161 of file sim_lib_mgr.cpp.

References SIM_MODEL::Create(), and m_models.

◆ CreateModel() [4/6]

SIM_LIBRARY::MODEL SIM_LIB_MGR::CreateModel ( const std::vector< SCH_FIELD > &  aFields,
const std::vector< SCH_PIN * > &  aPins,
bool  aResolved,
REPORTER aReporter 
)

◆ CreateModel() [5/6]

SIM_LIBRARY::MODEL SIM_LIB_MGR::CreateModel ( const wxString &  aLibraryPath,
const std::string &  aBaseModelName,
const std::vector< SCH_FIELD > &  aFields,
const std::vector< SCH_PIN * > &  aPins,
REPORTER aReporter 
)

◆ CreateModel() [6/6]

◆ GetLibraries()

std::map< wxString, std::reference_wrapper< const SIM_LIBRARY > > SIM_LIB_MGR::GetLibraries ( ) const

Definition at line 335 of file sim_lib_mgr.cpp.

References library, m_libraries, and path.

Referenced by NETLIST_EXPORTER_SPICE::writeIncludes().

◆ GetModels()

std::vector< std::reference_wrapper< SIM_MODEL > > SIM_LIB_MGR::GetModels ( ) const

Definition at line 346 of file sim_lib_mgr.cpp.

References m_models.

◆ ResolveEmbeddedLibraryPath()

wxString SIM_LIB_MGR::ResolveEmbeddedLibraryPath ( const wxString &  aLibPath,
const wxString &  aRelativeLib,
REPORTER aReporter 
)

Definition at line 98 of file sim_lib_mgr.cpp.

References m_project, and ResolveLibraryPath().

Referenced by CreateModel(), and SetLibrary().

◆ ResolveLibraryPath()

wxString SIM_LIB_MGR::ResolveLibraryPath ( const wxString &  aLibraryPath,
const PROJECT aProject,
REPORTER aReporter 
)
static

◆ SetForceFullParse()

void SIM_LIB_MGR::SetForceFullParse ( )
inline

Definition at line 44 of file sim_lib_mgr.h.

References m_forceFullParse.

◆ SetLibrary()

◆ SetModel()

void SIM_LIB_MGR::SetModel ( int  aIndex,
std::unique_ptr< SIM_MODEL aModel 
)

Definition at line 329 of file sim_lib_mgr.cpp.

References m_models.

Member Data Documentation

◆ m_forceFullParse

bool SIM_LIB_MGR::m_forceFullParse
private

Definition at line 84 of file sim_lib_mgr.h.

Referenced by CreateModel(), SetForceFullParse(), and SetLibrary().

◆ m_libraries

std::map<wxString, std::unique_ptr<SIM_LIBRARY> > SIM_LIB_MGR::m_libraries
private

Definition at line 85 of file sim_lib_mgr.h.

Referenced by Clear(), CreateModel(), GetLibraries(), and SetLibrary().

◆ m_models

std::vector<std::unique_ptr<SIM_MODEL> > SIM_LIB_MGR::m_models
private

Definition at line 86 of file sim_lib_mgr.h.

Referenced by Clear(), CreateModel(), GetModels(), and SetModel().

◆ m_project

const PROJECT* SIM_LIB_MGR::m_project
private

Definition at line 83 of file sim_lib_mgr.h.

Referenced by CreateModel(), ResolveEmbeddedLibraryPath(), and SetLibrary().


The documentation for this class was generated from the following files: