QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
processing
models
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"
23
#include "
qgsprocessingmodelcomment.h
"
24
#include "
qgsprocessingmodelcomponent.h
"
25
27
28
33
class
CORE_EXPORT QgsProcessingModelParameter :
public
QgsProcessingModelComponent
34
{
35
public
:
40
QgsProcessingModelParameter(
const
QString ¶meterName = 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
qgis.h
SIP_SKIP
#define SIP_SKIP
Definition
qgis_sip.h:138
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:83
qgsprocessingmodelcomment.h
qgsprocessingmodelcomponent.h
Generated on
for QGIS API Documentation by
1.17.0