Sim: s/SIM_MODEL_MUTUAL_INDUCTOR/SIM_MODEL_L_MUTUAL/

This commit is contained in:
Mikolaj Wielgus 2022-11-21 05:01:12 +01:00
parent e9fe59a28c
commit d63eac9778
4 changed files with 14 additions and 14 deletions

View File

@ -289,7 +289,7 @@ set( EESCHEMA_SRCS
sim/sim_model.cpp
sim/sim_model_behavioral.cpp
sim/sim_model_ideal.cpp
sim/sim_model_mutual_inductor.cpp
sim/sim_model_l_mutual.cpp
sim/sim_model_kibis.cpp
sim/sim_model_ngspice.cpp
sim/sim_model_ngspice_data.cpp

View File

@ -25,7 +25,7 @@
#include <sim/sim_model.h>
#include <sim/sim_model_behavioral.h>
#include <sim/sim_model_ideal.h>
#include <sim/sim_model_mutual_inductor.h>
#include <sim/sim_model_l_mutual.h>
#include <sim/sim_model_ngspice.h>
#include <sim/sim_model_r_pot.h>
#include <sim/sim_model_kibis.h>
@ -817,7 +817,7 @@ std::unique_ptr<SIM_MODEL> SIM_MODEL::Create( TYPE aType )
return std::make_unique<SIM_MODEL_R_POT>();
case TYPE::L_MUTUAL:
return std::make_unique<SIM_MODEL_MUTUAL_INDUCTOR>();
return std::make_unique<SIM_MODEL_L_MUTUAL>();
case TYPE::R_BEHAVIORAL:
case TYPE::C_BEHAVIORAL:

View File

@ -22,10 +22,10 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <sim/sim_model_mutual_inductor.h>
#include <sim/sim_model_l_mutual.h>
std::string SPICE_GENERATOR_MUTUAL_INDUCTOR::ItemParams() const
std::string SPICE_GENERATOR_L_MUTUAL::ItemParams() const
{
std::string result;
@ -36,9 +36,9 @@ std::string SPICE_GENERATOR_MUTUAL_INDUCTOR::ItemParams() const
}
SIM_MODEL_MUTUAL_INDUCTOR::SIM_MODEL_MUTUAL_INDUCTOR() :
SIM_MODEL_L_MUTUAL::SIM_MODEL_L_MUTUAL() :
SIM_MODEL( SIM_MODEL::TYPE::L_MUTUAL,
std::make_unique<SPICE_GENERATOR_MUTUAL_INDUCTOR>( *this ) )
std::make_unique<SPICE_GENERATOR_L_MUTUAL>( *this ) )
{
static std::vector<PARAM::INFO> paramInfos = makeParamInfos();
@ -47,7 +47,7 @@ SIM_MODEL_MUTUAL_INDUCTOR::SIM_MODEL_MUTUAL_INDUCTOR() :
}
const std::vector<SIM_MODEL::PARAM::INFO> SIM_MODEL_MUTUAL_INDUCTOR::makeParamInfos()
const std::vector<SIM_MODEL::PARAM::INFO> SIM_MODEL_L_MUTUAL::makeParamInfos()
{
std::vector<PARAM::INFO> paramInfos;
PARAM::INFO paramInfo;

View File

@ -22,14 +22,14 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef SIM_MODEL_MUTUAL_INDUCTOR_H
#define SIM_MODEL_MUTUAL_INDUCTOR_H
#ifndef SIM_MODEL_L_MUTUAL_H
#define SIM_MODEL_L_MUTUAL_H
#include <sim/sim_model.h>
#include <sim/spice_generator.h>
class SPICE_GENERATOR_MUTUAL_INDUCTOR : public SPICE_GENERATOR
class SPICE_GENERATOR_L_MUTUAL : public SPICE_GENERATOR
{
public:
using SPICE_GENERATOR::SPICE_GENERATOR;
@ -38,14 +38,14 @@ public:
};
class SIM_MODEL_MUTUAL_INDUCTOR : public SIM_MODEL
class SIM_MODEL_L_MUTUAL : public SIM_MODEL
{
public:
SIM_MODEL_MUTUAL_INDUCTOR();
SIM_MODEL_L_MUTUAL();
private:
static const std::vector<PARAM::INFO> makeParamInfos();
};
#endif // SIM_MODEL_MUTUAL_INDUCTOR_H
#endif // SIM_MODEL_L_MUTUAL_H