Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
QucsSExporter Class Reference

Exports schematic content to Qucs-S netlist format. More...

#include <QucsSExporter.h>

Inheritance diagram for QucsSExporter:
Inheritance graph
[legend]
Collaboration diagram for QucsSExporter:
Collaboration graph
[legend]

Public Member Functions

 QucsSExporter (SchematicContent &owner)
 Constructs a QucsSExporter with reference to schematic content.
 
 ~QucsSExporter ()
 Class destructor.
 
void setSchematiContent (const SchematicContent &schematic)
 Sets the schematic content to be exported.
 
QString exportSchematic ()
 Exports the schematic to Qucs-S format.
 
- Public Member Functions inherited from SchematicExporter
virtual ~SchematicExporter ()=default
 Class destructor.
 

Public Attributes

QString backend_simulator
 Name of the backend simulator (Qucsator, NGspice, or Xyce)
 

Additional Inherited Members

- Protected Attributes inherited from SchematicExporter
int scale_x
 x-axis scale factor
 
int scale_y
 y-axis scale factor
 
int x_offset
 x-axis offset
 
int y_offset
 y-axis offset
 
QMap< QString, QList< QPoint > > ComponentPinMap
 Maps component identifiers to their pin position lists.
 

Detailed Description

Exports schematic content to Qucs-S netlist format.

This class serves as the base for all schematic export implementations.

It handles the conversion of internal schematic representations to the Qucs-S schematic format. It processes components, wires, and nodes, applying appropriate transformations and scaling. The exporter supports multiple backend simulators (Qucsator, NGspice, Xyce) and maintains compatibility blacklists for unsupported components per simulator.

Constructor & Destructor Documentation

◆ QucsSExporter()

QucsSExporter::QucsSExporter ( SchematicContent owner)
explicit

Constructs a QucsSExporter with reference to schematic content.

Parameters
ownerReference to the SchematicContent object to be exported

Member Function Documentation

◆ exportSchematic()

QString QucsSExporter::exportSchematic ( )
virtual

Exports the schematic to Qucs-S format.

Returns
QString containing complete Qucs-S netlist, or "-1" on error

Implements SchematicExporter.

◆ setSchematiContent()

void QucsSExporter::setSchematiContent ( const SchematicContent schematic)

Sets the schematic content to be exported.

Parameters
schematicReference to the SchematicContent object

The documentation for this class was generated from the following files: