QGIS API Documentation 4.0.0-Norrköping (1ddcee3d0e4)
Loading...
Searching...
No Matches
qgsprocessingmodelparameter.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsprocessingmodelparameter.h
3 -----------------------------
4 begin : June 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#ifndef QGSPROCESSINGMODELPARAMETER_H
19#define QGSPROCESSINGMODELPARAMETER_H
20
21#include "qgis.h"
22#include "qgis_core.h"
25
27
28
33class CORE_EXPORT QgsProcessingModelParameter : public QgsProcessingModelComponent
34{
35 public:
40 QgsProcessingModelParameter( const QString &parameterName = QString() );
41
42 QgsProcessingModelParameter *clone() const override SIP_FACTORY;
43
49 QString parameterName() const { return mParameterName; }
50
56 void setParameterName( const QString &name ) { mParameterName = name; }
57
62 QVariant toVariant() const;
63
68 bool loadVariant( const QVariantMap &map );
69
70 SIP_SKIP const QgsProcessingModelComment *comment() const override { return &mComment; }
71 QgsProcessingModelComment *comment() override { return &mComment; }
72 void setComment( const QgsProcessingModelComment &comment ) override { mComment = comment; }
73
74 private:
75 QString mParameterName;
76
77 QgsProcessingModelComment mComment;
78};
79
81
82#endif // QGSPROCESSINGMODELPARAMETER_H
#define SIP_SKIP
Definition qgis_sip.h:133
#define SIP_FACTORY
Definition qgis_sip.h:83