Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
QucsSExporter.h
Go to the documentation of this file.
1
7
8#ifndef QUCSSEXPORTER_H
9#define QUCSSEXPORTER_H
10
12#include "Schematic/Export/SchematicExporter.h"
14
15// This is needed for catching the current Qucs-S version
16#ifdef HAVE_CONFIG_H
17#include <config.h>
18#endif
19
32public:
35 explicit QucsSExporter(SchematicContent& owner);
36
39
42 void setSchematiContent(const SchematicContent& schematic);
43
46 QString exportSchematic();
47
50
51
52private:
54 SchematicContent& schematic;
55
56private:
57 // These variables apply a general offset in the Qucs-S schematic export process
58 int x_offset;
59 int y_offset;
60
61 // General schematic scaling versus the tool's schematic
62 int scale_x;
63 int scale_y;
64
65 // Component processing
66
73 QString processComponents_QucsS(QString);
74
77 QString parseTerm_QucsS(ComponentInfo);
78 QString parseResistor_QucsS(ComponentInfo);
79 QString parseInductor_QucsS(ComponentInfo);
80 QString parseCapacitor_QucsS(ComponentInfo);
81 QString parseGND_QucsS(ComponentInfo);
82 QString parseIdealTransmissionLine_QucsS(ComponentInfo);
83 QString parseIdealCoupledTransmissionLines_QucsS(ComponentInfo);
84 QString parseShortStub_QucsS(ComponentInfo);
85 QString parseIdealCoupler_QucsS(ComponentInfo);
86 QString parseComplexImpedance_QucsS(ComponentInfo, double);
87 QString parseSPAR_Block_QucsS(ComponentInfo);
88
89 // Microstrip components
90
96 MS_Substrate get_MS_Substrate(ComponentInfo Comp);
97
104 QString addSubstrateBox(QList<MS_Substrate> subs_list, int x_bottom, int y_bottom);
105 QString parseMicrostripLine_QucsS(ComponentInfo);
106 QString parseMicrostripCoupledLines_QucsS(ComponentInfo);
107 QString parseMicrostripStep_QucsS(ComponentInfo);
108 QString parseMicrostripOpen_QucsS(ComponentInfo);
109 QString parseMicrostripVia_QucsS(ComponentInfo);
111
117 QString processWires_QucsS();
118
123 void processNodes_QucsS();
124
130 QMap<QString, QList<ComponentType>> Export_Blacklists;
131};
132
133#endif // QUCSSEXPORTER_H
Qucs-S schematic export class (definition)
Container for schematic circuit data (definition)
Component information container.
Definition infoclasses.h:18
Exports schematic content to Qucs-S netlist format.
Definition QucsSExporter.h:31
~QucsSExporter()
Class destructor.
Definition QucsSExporter.h:38
QString exportSchematic()
Exports the schematic to Qucs-S format.
Definition QucsSExporter.cpp:36
void setSchematiContent(const SchematicContent &schematic)
Sets the schematic content to be exported.
QString backend_simulator
Name of the backend simulator (Qucsator, NGspice, or Xyce)
Definition QucsSExporter.h:49
Container for schematic circuit data.
Definition SchematicContent.h:27
Definition SchematicExporter.h:28
Microstrip substrate parameters.
Definition structures.h:145