18 #ifndef QGSPROCESSINGOUTPUTS_H 19 #define QGSPROCESSINGOUTPUTS_H 21 #include "qgis_core.h" 47 sipType = sipType_QgsProcessingOutputVectorLayer;
49 sipType = sipType_QgsProcessingOutputRasterLayer;
51 sipType = sipType_QgsProcessingOutputMapLayer;
53 sipType = sipType_QgsProcessingOutputMultipleLayers;
55 sipType = sipType_QgsProcessingOutputHtml;
57 sipType = sipType_QgsProcessingOutputNumber;
59 sipType = sipType_QgsProcessingOutputString;
61 sipType = sipType_QgsProcessingOutputFolder;
63 sipType = sipType_QgsProcessingOutputFile;
81 virtual QString type()
const = 0;
88 QString
name()
const {
return mName; }
95 void setName(
const QString &name ) { mName = name; }
109 void setDescription(
const QString &description ) { mDescription = description; }
146 static QString
typeName() {
return QStringLiteral(
"outputLayer" ); }
148 QString
type()
const override;
170 static QString
typeName() {
return QStringLiteral(
"outputVector" ); }
208 static QString
typeName() {
return QStringLiteral(
"outputRaster" ); }
239 static QString
typeName() {
return QStringLiteral(
"outputMultilayer" ); }
240 QString
type()
const override;
262 static QString
typeName() {
return QStringLiteral(
"outputHtml" ); }
285 static QString
typeName() {
return QStringLiteral(
"outputNumber" ); }
307 static QString
typeName() {
return QStringLiteral(
"outputString" ); }
331 static QString
typeName() {
return QStringLiteral(
"outputFolder" ); }
354 static QString
typeName() {
return QStringLiteral(
"outputFile" ); }
360 #endif // QGSPROCESSINGOUTPUTS_H QString description() const
Returns the description for the output.
static QString typeName()
Returns the type name for the output class.
static QString typeName()
Returns the type name for the output class.
QString type() const override
Unique output type name.
QString name() const
Returns the name of the output.
A HTML file output for processing algorithms.
static QString typeName()
Returns the type name for the output class.
A numeric output for processing algorithms.
A vector layer output for processing algorithms.
QString type() const override
Unique output type name.
A string output for processing algorithms.
QString type() const override
Unique output type name.
QString mName
Output name.
void setName(const QString &name)
Sets the name of the output.
A file output for processing algorithms.
static QString typeName()
Returns the type name for the output class.
virtual QString type() const =0
Unique output type name.
static QString typeName()
Returns the type name for the output class.
static QString typeName()
Returns the type name for the output class.
QString type() const override
Unique output type name.
A multi-layer output for processing algorithms which create map layers, when the number and nature of...
QString mDescription
Output description.
Base class for the definition of processing outputs.
QList< const QgsProcessingOutputDefinition *> QgsProcessingOutputDefinitions
List of processing parameters.
static QString typeName()
Returns the type name for the output class.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
SourceType
Data source types enum.
static QString typeName()
Returns the type name for the output class.
A folder output for processing algorithms.
QString type() const override
Unique output type name.
QString type() const override
Unique output type name.
void setDescription(const QString &description)
Sets the description for the output.
static QString typeName()
Returns the type name for the output class.
Any vector layer with geometry.
A raster layer output for processing algorithms.
QString type() const override
Unique output type name.
A map layer output for processing algorithms, where layers may be either vector or raster...