KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sch_io_ltspice_parser.cpp File Reference
#include <sch_io/ltspice/sch_io_ltspice_parser.h>
#include <sch_io/ltspice/ltspice_schematic.h>
#include <schematic.h>
#include <sch_line.h>
#include <sch_label.h>
#include <sch_text.h>
#include <sch_edit_frame.h>
#include <sch_shape.h>
#include <sch_bus_entry.h>
#include <wx/buffer.h>
#include <wx/ffile.h>
#include <wx/filename.h>
#include <wx/strconv.h>
#include <wx/tokenzr.h>
#include <wx/txtstrm.h>
#include <wx/wfstream.h>
#include <sim/spice_value.h>
#include <fmt/format.h>
#include <cmath>
#include <set>

Go to the source code of this file.

Functions

static std::vector< wxString > tokenizeQuoted (const wxString &aText)
 Parses the datastructure produced by the LTSPICE_SCHEMATIC into a KiCad schematic file.
 
static wxString convertLtSpiceTextToNgspice (const wxString &aText)
 
static bool convertPwlFileToNgspice (const wxFileName &aSourceFile, const wxFileName &aDestFile)
 
LABEL_FLAG_SHAPE getLabelShape (LTSPICE_SCHEMATIC::POLARITY aPolarity)
 

Function Documentation

◆ convertLtSpiceTextToNgspice()

static wxString convertLtSpiceTextToNgspice ( const wxString & aText)
static

◆ convertPwlFileToNgspice()

static bool convertPwlFileToNgspice ( const wxFileName & aSourceFile,
const wxFileName & aDestFile )
static

Definition at line 159 of file sch_io_ltspice_parser.cpp.

References SPICE_VALUE::ToDouble().

Referenced by SCH_IO_LTSPICE_PARSER::CreateFields().

◆ getLabelShape()

◆ tokenizeQuoted()

static std::vector< wxString > tokenizeQuoted ( const wxString & aText)
static

Parses the datastructure produced by the LTSPICE_SCHEMATIC into a KiCad schematic file.

Definition at line 52 of file sch_io_ltspice_parser.cpp.

Referenced by SCH_IO_LTSPICE_PARSER::CreateFields().