QGIS API Documentation  3.4.15-Madeira (e83d02e274)
qgsprocessingoutputs.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  qgsprocessingoutputs.cpp
3  -------------------------
4  begin : May 2017
5  copyright : (C) 2017 by Nyall Dawson
6  email : nyall dot dawson at gmail dot com
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #include "qgsprocessingoutputs.h"
19 
20 QgsProcessingOutputDefinition::QgsProcessingOutputDefinition( const QString &name, const QString &description )
21  : mName( name )
22  , mDescription( description )
23 {
24 
25 }
26 
28  : QgsProcessingOutputDefinition( name, description )
29  , mDataType( type )
30 {}
31 
33 {
34  return mDataType;
35 }
36 
38 {
39  mDataType = type;
40 }
41 
43  : QgsProcessingOutputDefinition( name, description )
44 {}
45 
47  : QgsProcessingOutputDefinition( name, description )
48 {}
49 
51  : QgsProcessingOutputDefinition( name, description )
52 {}
53 
55  : QgsProcessingOutputDefinition( name, description )
56 {}
57 
59  : QgsProcessingOutputDefinition( name, description )
60 {}
61 
63  : QgsProcessingOutputDefinition( name, description )
64 {}
65 
67  : QgsProcessingOutputDefinition( name, description )
68 {}
69 
71 {
72  return typeName();
73 }
74 
76  : QgsProcessingOutputDefinition( name, description )
77 {}
78 
80 {
81  return typeName();
82 }
QgsProcessingOutputFile(const QString &name, const QString &description=QString())
Constructor for QgsProcessingOutputFile.
QgsProcessingOutputNumber(const QString &name, const QString &description=QString())
Constructor for QgsProcessingOutputNumber.
QgsProcessingOutputDefinition(const QString &name, const QString &description=QString())
Constructor for QgsProcessingOutputDefinition.
static QString typeName()
Returns the type name for the output class.
QgsProcessingOutputString(const QString &name, const QString &description=QString())
Constructor for QgsProcessingOutputString.
QString description() const
Returns the description for the output.
QgsProcessingOutputFolder(const QString &name, const QString &description=QString())
Constructor for QgsProcessingOutputFolder.
QgsProcessingOutputVectorLayer(const QString &name, const QString &description=QString(), QgsProcessing::SourceType type=QgsProcessing::TypeVectorAnyGeometry)
Constructor for QgsProcessingOutputVectorLayer.
QgsProcessingOutputHtml(const QString &name, const QString &description=QString())
Constructor for QgsProcessingOutputHtml.
QgsProcessingOutputMapLayer(const QString &name, const QString &description=QString())
Constructor for QgsProcessingOutputMapLayer.
QgsProcessingOutputRasterLayer(const QString &name, const QString &description=QString())
Constructor for QgsProcessingOutputRasterLayer.
virtual QString type() const =0
Unique output type name.
void setDataType(QgsProcessing::SourceType type)
Sets the layer type for the output layer.
static QString typeName()
Returns the type name for the output class.
QgsProcessingOutputMultipleLayers(const QString &name, const QString &description=QString())
Constructor for QgsProcessingOutputMultipleLayers.
QString type() const override
Unique output type name.
Base class for the definition of processing outputs.
QgsProcessing::SourceType dataType() const
Returns the layer type for the output layer.
SourceType
Data source types enum.
Definition: qgsprocessing.h:44
QString type() const override
Unique output type name.
QString name() const
Returns the name of the output.
QString type() const override
Unique output type name.