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#include "Misc/general.h"
15
16// This is needed for catching the current Qucs-S version
17#ifdef HAVE_CONFIG_H
18#include <config.h>
19#endif
20
33public:
36 explicit QucsSExporter(SchematicContent& owner);
37
40
43 void setSchematiContent(const SchematicContent& schematic);
44
47 QString exportSchematic();
48
51
52
53private:
55 SchematicContent& schematic;
56
57private:
58 // These variables apply a general offset in the Qucs-S schematic export process
59 int x_offset;
60 int y_offset;
61
62 // General schematic scaling versus the tool's schematic
63 int scale_x;
64 int scale_y;
65
66 // Component processing
67
74 QString processComponents_QucsS(QString);
75
78 QString parseTerm_QucsS(ComponentInfo);
79 QString parseResistor_QucsS(ComponentInfo);
80 QString parseInductor_QucsS(ComponentInfo);
81 QString parseCapacitor_QucsS(ComponentInfo);
82 QString parseGND_QucsS(ComponentInfo);
83 QString parseIdealTransmissionLine_QucsS(ComponentInfo);
84 QString parseIdealCoupledTransmissionLines_QucsS(ComponentInfo);
85 QString parseShortStub_QucsS(ComponentInfo);
86 QString parseIdealCoupler_QucsS(ComponentInfo);
87 QString parseComplexImpedance_QucsS(ComponentInfo, double);
88 QString parseSPAR_Block_QucsS(ComponentInfo);
89
90 // Microstrip components
91
97 MS_Substrate get_MS_Substrate(ComponentInfo Comp);
98
105 QString addSubstrateBox(QList<MS_Substrate> subs_list, int x_bottom, int y_bottom);
106 QString parseMicrostripLine_QucsS(ComponentInfo);
107 QString parseMicrostripCoupledLines_QucsS(ComponentInfo);
108 QString parseMicrostripStep_QucsS(ComponentInfo);
109 QString parseMicrostripOpen_QucsS(ComponentInfo);
110 QString parseMicrostripVia_QucsS(ComponentInfo);
112
118 QString processWires_QucsS();
119
124 void processNodes_QucsS();
125
131 QMap<QString, QList<ComponentType>> Export_Blacklists;
132};
133
134#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:32
~QucsSExporter()
Class destructor.
Definition QucsSExporter.h:39
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:50
Container for schematic circuit data.
Definition SchematicContent.h:27
Definition SchematicExporter.h:28
Utility functions needed across the whole project.
Microstrip substrate parameters.
Definition structures.h:145