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< LIB_PIN * > &aPins, REPORTER &aReporter)
 
SIM_MODELCreateModel (const SIM_MODEL *aBaseModel, const std::vector< LIB_PIN * > &aPins, REPORTER &aReporter)
 
template<typename T >
SIM_MODELCreateModel (const SIM_MODEL *aBaseModel, const std::vector< LIB_PIN * > &aPins, const std::vector< T > &aFields, REPORTER &aReporter)
 
SIM_LIBRARY::MODEL CreateModel (const SCH_SHEET_PATH *aSheetPath, SCH_SYMBOL &aSymbol, REPORTER &aReporter)
 
template<typename T >
SIM_LIBRARY::MODEL CreateModel (const std::vector< T > &aFields, const std::vector< LIB_PIN * > &aPins, bool aResolved, REPORTER &aReporter)
 
template<typename T >
SIM_LIBRARY::MODEL CreateModel (const wxString &aLibraryPath, const std::string &aBaseModelName, const std::vector< T > &aFields, const std::vector< LIB_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)
 

Static Public Member Functions

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

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 40 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]

template<typename T >
SIM_MODEL & SIM_LIB_MGR::CreateModel ( const SIM_MODEL aBaseModel,
const std::vector< LIB_PIN * > &  aPins,
const std::vector< T > &  aFields,
REPORTER aReporter 
)

Definition at line 173 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< LIB_PIN * > &  aPins,
REPORTER aReporter 
)

Definition at line 164 of file sim_lib_mgr.cpp.

References SIM_MODEL::Create(), and m_models.

◆ CreateModel() [4/6]

template<typename T >
SIM_LIBRARY::MODEL SIM_LIB_MGR::CreateModel ( const std::vector< T > &  aFields,
const std::vector< LIB_PIN * > &  aPins,
bool  aResolved,
REPORTER aReporter 
)

◆ CreateModel() [5/6]

template<typename T >
SIM_LIBRARY::MODEL SIM_LIB_MGR::CreateModel ( const wxString &  aLibraryPath,
const std::string &  aBaseModelName,
const std::vector< T > &  aFields,
const std::vector< LIB_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 365 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 376 of file sim_lib_mgr.cpp.

References m_models.

◆ ResolveEmbeddedLibraryPath()

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

Definition at line 95 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 
)
static

◆ SetForceFullParse()

void SIM_LIB_MGR::SetForceFullParse ( )
inline

Definition at line 46 of file sim_lib_mgr.h.

References m_forceFullParse.

◆ SetLibrary()

void SIM_LIB_MGR::SetLibrary ( const wxString &  aLibraryPath,
REPORTER aReporter 
)

◆ SetModel()

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

Definition at line 359 of file sim_lib_mgr.cpp.

References m_models.

Member Data Documentation

◆ m_forceFullParse

bool SIM_LIB_MGR::m_forceFullParse
private

Definition at line 87 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 88 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 89 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 86 of file sim_lib_mgr.h.

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


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