QGIS API Documentation 3.41.0-Master (3440c17df1d)
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_core.h"
22#include "qgis.h"
25
27
28
33class CORE_EXPORT QgsProcessingModelParameter : public QgsProcessingModelComponent
34{
35 public:
36
41 QgsProcessingModelParameter( const QString &parameterName = QString() );
42
43 QgsProcessingModelParameter *clone() const override SIP_FACTORY;
44
50 QString parameterName() const { return mParameterName; }
51
57 void setParameterName( const QString &name ) { mParameterName = name; }
58
63 QVariant toVariant() const;
64
69 bool loadVariant( const QVariantMap &map );
70
71 SIP_SKIP const QgsProcessingModelComment *comment() const override { return &mComment; }
72 QgsProcessingModelComment *comment() override { return &mComment; }
73 void setComment( const QgsProcessingModelComment &comment ) override { mComment = comment; }
74
75 private:
76
77 QString mParameterName;
78
79 QgsProcessingModelComment mComment;
80
81};
82
84
85#endif // QGSPROCESSINGMODELPARAMETER_H
#define SIP_SKIP
Definition qgis_sip.h:126
#define SIP_FACTORY
Definition qgis_sip.h:76