Passive component factory.
More...
#include <passive_components.hpp>
|
static std::shared_ptr< Resistor > | createResistor (const std::string &name, double resistance, double tolerance=5.0) |
static std::shared_ptr< Capacitor > | createCapacitor (const std::string &name, double capacitance, Capacitor::DielectricType dielectric=Capacitor::DielectricType::Ceramic) |
static std::shared_ptr< Inductor > | createInductor (const std::string &name, double inductance, Inductor::CoreType core=Inductor::CoreType::Air) |
static std::shared_ptr< Crystal > | createCrystal (const std::string &name, double frequency, Crystal::CrystalType type=Crystal::CrystalType::Quartz) |
static std::shared_ptr< Transformer > | createTransformer (const std::string &name, double turns_ratio, Transformer::TransformerType type=Transformer::TransformerType::Signal) |
static std::shared_ptr< Component > | createFromSpecs (const std::string &component_type, const std::string &name, const std::map< std::string, std::string > &specs) |
static void | registerStandardComponents (ComponentLibrary &library) |
Passive component factory.
Definition at line 322 of file passive_components.hpp.
◆ createCapacitor()
◆ createCrystal()
◆ createFromSpecs()
std::shared_ptr< Component > zlayout::components::PassiveComponentFactory::createFromSpecs |
( |
const std::string & | component_type, |
|
|
const std::string & | name, |
|
|
const std::map< std::string, std::string > & | specs ) |
|
static |
◆ createInductor()
◆ createResistor()
std::shared_ptr< Resistor > zlayout::components::PassiveComponentFactory::createResistor |
( |
const std::string & | name, |
|
|
double | resistance, |
|
|
double | tolerance = 5.0 ) |
|
static |
◆ createTransformer()
◆ registerStandardComponents()
void zlayout::components::PassiveComponentFactory::registerStandardComponents |
( |
ComponentLibrary & | library | ) |
|
|
static |
The documentation for this class was generated from the following file: