QGIS API Documentation  3.16.0-Hannover (43b64b13f3)
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 
27 QgsProcessingOutputVectorLayer::QgsProcessingOutputVectorLayer( const QString &name, const QString &description, QgsProcessing::SourceType type )
28  : QgsProcessingOutputDefinition( name, description )
29  , mDataType( type )
30 {}
31 
33 {
34  return mDataType;
35 }
36 
38 {
39  mDataType = type;
40 }
41 
42 QgsProcessingOutputRasterLayer::QgsProcessingOutputRasterLayer( const QString &name, const QString &description )
43  : QgsProcessingOutputDefinition( name, description )
44 {}
45 
46 QgsProcessingOutputHtml::QgsProcessingOutputHtml( const QString &name, const QString &description )
47  : QgsProcessingOutputDefinition( name, description )
48 {}
49 
50 QgsProcessingOutputNumber::QgsProcessingOutputNumber( const QString &name, const QString &description )
51  : QgsProcessingOutputDefinition( name, description )
52 {}
53 
54 QgsProcessingOutputString::QgsProcessingOutputString( const QString &name, const QString &description )
55  : QgsProcessingOutputDefinition( name, description )
56 {}
57 
58 QgsProcessingOutputBoolean::QgsProcessingOutputBoolean( const QString &name, const QString &description )
59  : QgsProcessingOutputDefinition( name, description )
60 {}
61 
62 QgsProcessingOutputFolder::QgsProcessingOutputFolder( const QString &name, const QString &description )
63  : QgsProcessingOutputDefinition( name, description )
64 {}
65 
66 QgsProcessingOutputFile::QgsProcessingOutputFile( const QString &name, const QString &description )
67  : QgsProcessingOutputDefinition( name, description )
68 {}
69 
70 QgsProcessingOutputMapLayer::QgsProcessingOutputMapLayer( const QString &name, const QString &description )
71  : QgsProcessingOutputDefinition( name, description )
72 {}
73 
75 {
76  return typeName();
77 }
78 
79 QgsProcessingOutputMultipleLayers::QgsProcessingOutputMultipleLayers( const QString &name, const QString &description )
80  : QgsProcessingOutputDefinition( name, description )
81 {}
82 
84 {
85  return typeName();
86 }
87 
88 QgsProcessingOutputConditionalBranch::QgsProcessingOutputConditionalBranch( const QString &name, const QString &description )
89  : QgsProcessingOutputDefinition( name, description )
90 {
91 
92 }
QgsProcessingOutputFolder::QgsProcessingOutputFolder
QgsProcessingOutputFolder(const QString &name, const QString &description=QString())
Constructor for QgsProcessingOutputFolder.
Definition: qgsprocessingoutputs.cpp:62
QgsProcessingOutputBoolean::QgsProcessingOutputBoolean
QgsProcessingOutputBoolean(const QString &name, const QString &description=QString())
Constructor for QgsProcessingOutputNumber.
Definition: qgsprocessingoutputs.cpp:58
QgsProcessingOutputMultipleLayers::QgsProcessingOutputMultipleLayers
QgsProcessingOutputMultipleLayers(const QString &name, const QString &description=QString())
Constructor for QgsProcessingOutputMultipleLayers.
Definition: qgsprocessingoutputs.cpp:79
QgsProcessingOutputVectorLayer::setDataType
void setDataType(QgsProcessing::SourceType type)
Sets the layer type for the output layer.
Definition: qgsprocessingoutputs.cpp:37
QgsProcessingOutputVectorLayer::type
QString type() const override
Unique output type name.
Definition: qgsprocessingoutputs.h:192
QgsProcessingOutputMapLayer::QgsProcessingOutputMapLayer
QgsProcessingOutputMapLayer(const QString &name, const QString &description=QString())
Constructor for QgsProcessingOutputMapLayer.
Definition: qgsprocessingoutputs.cpp:70
QgsProcessingOutputRasterLayer::QgsProcessingOutputRasterLayer
QgsProcessingOutputRasterLayer(const QString &name, const QString &description=QString())
Constructor for QgsProcessingOutputRasterLayer.
Definition: qgsprocessingoutputs.cpp:42
QgsProcessingOutputMultipleLayers::typeName
static QString typeName()
Returns the type name for the output class.
Definition: qgsprocessingoutputs.h:260
QgsProcessingOutputHtml::QgsProcessingOutputHtml
QgsProcessingOutputHtml(const QString &name, const QString &description=QString())
Constructor for QgsProcessingOutputHtml.
Definition: qgsprocessingoutputs.cpp:46
QgsProcessingOutputMultipleLayers::type
QString type() const override
Unique output type name.
Definition: qgsprocessingoutputs.cpp:83
QgsProcessingOutputDefinition
Base class for the definition of processing outputs.
Definition: qgsprocessingoutputs.h:42
QgsProcessingOutputString::QgsProcessingOutputString
QgsProcessingOutputString(const QString &name, const QString &description=QString())
Constructor for QgsProcessingOutputString.
Definition: qgsprocessingoutputs.cpp:54
QgsProcessingOutputMapLayer::typeName
static QString typeName()
Returns the type name for the output class.
Definition: qgsprocessingoutputs.h:167
QgsProcessingOutputVectorLayer::QgsProcessingOutputVectorLayer
QgsProcessingOutputVectorLayer(const QString &name, const QString &description=QString(), QgsProcessing::SourceType type=QgsProcessing::TypeVectorAnyGeometry)
Constructor for QgsProcessingOutputVectorLayer.
Definition: qgsprocessingoutputs.cpp:27
qgsprocessingoutputs.h
QgsProcessingOutputNumber::QgsProcessingOutputNumber
QgsProcessingOutputNumber(const QString &name, const QString &description=QString())
Constructor for QgsProcessingOutputNumber.
Definition: qgsprocessingoutputs.cpp:50
QgsProcessingOutputMapLayer::type
QString type() const override
Unique output type name.
Definition: qgsprocessingoutputs.cpp:74
QgsProcessingOutputVectorLayer::dataType
QgsProcessing::SourceType dataType() const
Returns the layer type for the output layer.
Definition: qgsprocessingoutputs.cpp:32
QgsProcessingOutputDefinition::QgsProcessingOutputDefinition
QgsProcessingOutputDefinition(const QString &name, const QString &description=QString())
Constructor for QgsProcessingOutputDefinition.
Definition: qgsprocessingoutputs.cpp:20
QgsProcessingOutputConditionalBranch::QgsProcessingOutputConditionalBranch
QgsProcessingOutputConditionalBranch(const QString &name, const QString &description=QString())
Constructor for QgsProcessingOutputConditionalBranch.
Definition: qgsprocessingoutputs.cpp:88
QgsProcessing::SourceType
SourceType
Data source types enum.
Definition: qgsprocessing.h:45
QgsProcessingOutputFile::QgsProcessingOutputFile
QgsProcessingOutputFile(const QString &name, const QString &description=QString())
Constructor for QgsProcessingOutputFile.
Definition: qgsprocessingoutputs.cpp:66