@@ -28,17 +28,17 @@ class QgsProcessingOutputDefinition
28
28
%End
29
29
30
30
%ConvertToSubClassCode
31
- if ( sipCpp->type() == "outputVector" )
31
+ if ( sipCpp->type() == QgsProcessingOutputVectorLayer::typeName() )
32
32
sipType = sipType_QgsProcessingOutputVectorLayer;
33
- else if ( sipCpp->type() == "outputRaster" )
33
+ else if ( sipCpp->type() == QgsProcessingOutputRasterLayer::typeName() )
34
34
sipType = sipType_QgsProcessingOutputRasterLayer;
35
- else if ( sipCpp->type() == "outputHtml" )
35
+ else if ( sipCpp->type() == QgsProcessingOutputHtml::typeName() )
36
36
sipType = sipType_QgsProcessingOutputHtml;
37
- else if ( sipCpp->type() == "outputNumber" )
37
+ else if ( sipCpp->type() == QgsProcessingOutputNumber::typeName() )
38
38
sipType = sipType_QgsProcessingOutputNumber;
39
- else if ( sipCpp->type() == "outputString" )
39
+ else if ( sipCpp->type() == QgsProcessingOutputString::typeName() )
40
40
sipType = sipType_QgsProcessingOutputString;
41
- else if ( sipCpp->type() == "outputFolder" )
41
+ else if ( sipCpp->type() == QgsProcessingOutputFolder::typeName() )
42
42
sipType = sipType_QgsProcessingOutputFolder;
43
43
%End
44
44
public:
@@ -111,6 +111,11 @@ class QgsProcessingOutputVectorLayer : QgsProcessingOutputDefinition
111
111
Constructor for QgsProcessingOutputVectorLayer.
112
112
%End
113
113
114
+ static QString typeName();
115
+ %Docstring
116
+ Returns the type name for the output class.
117
+ :rtype: str
118
+ %End
114
119
virtual QString type() const;
115
120
116
121
QgsProcessingParameterDefinition::LayerType dataType() const;
@@ -145,7 +150,14 @@ class QgsProcessingOutputRasterLayer : QgsProcessingOutputDefinition
145
150
Constructor for QgsProcessingOutputRasterLayer.
146
151
%End
147
152
153
+ static QString typeName();
154
+ %Docstring
155
+ Returns the type name for the output class.
156
+ :rtype: str
157
+ %End
148
158
virtual QString type() const;
159
+
160
+
149
161
};
150
162
151
163
class QgsProcessingOutputHtml : QgsProcessingOutputDefinition
@@ -165,7 +177,13 @@ class QgsProcessingOutputHtml : QgsProcessingOutputDefinition
165
177
Constructor for QgsProcessingOutputHtml.
166
178
%End
167
179
180
+ static QString typeName();
181
+ %Docstring
182
+ Returns the type name for the output class.
183
+ :rtype: str
184
+ %End
168
185
virtual QString type() const;
186
+
169
187
};
170
188
171
189
class QgsProcessingOutputNumber : QgsProcessingOutputDefinition
@@ -185,6 +203,11 @@ class QgsProcessingOutputNumber : QgsProcessingOutputDefinition
185
203
Constructor for QgsProcessingOutputNumber.
186
204
%End
187
205
206
+ static QString typeName();
207
+ %Docstring
208
+ Returns the type name for the output class.
209
+ :rtype: str
210
+ %End
188
211
virtual QString type() const;
189
212
};
190
213
@@ -205,7 +228,13 @@ class QgsProcessingOutputString : QgsProcessingOutputDefinition
205
228
Constructor for QgsProcessingOutputString.
206
229
%End
207
230
231
+ static QString typeName();
232
+ %Docstring
233
+ Returns the type name for the output class.
234
+ :rtype: str
235
+ %End
208
236
virtual QString type() const;
237
+
209
238
};
210
239
211
240
class QgsProcessingOutputFolder : QgsProcessingOutputDefinition
@@ -220,12 +249,19 @@ class QgsProcessingOutputFolder : QgsProcessingOutputDefinition
220
249
%End
221
250
public:
222
251
252
+
223
253
QgsProcessingOutputFolder( const QString &name, const QString &description = QString() );
224
254
%Docstring
225
255
Constructor for QgsProcessingOutputFolder.
226
256
%End
227
257
258
+ static QString typeName();
259
+ %Docstring
260
+ Returns the type name for the output class.
261
+ :rtype: str
262
+ %End
228
263
virtual QString type() const;
264
+
229
265
};
230
266
231
267
0 commit comments