@@ -33,9 +33,9 @@ namespace QgsWfs
33
33
34
34
/* *
35
35
* \ingroup server
36
- * \class QgsWfs::QgsWfsParameters
37
- * \brief Provides an interface to retrieve and manipulate WFS parameters received from the client.
38
- * \since QGIS 3.0
36
+ * \class QgsWfs::QgsWfsParameter
37
+ * \brief WFS parameter received from the client.
38
+ * \since QGIS 3.4
39
39
*/
40
40
class QgsWfsParameter : public QgsServerParameterDefinition
41
41
{
@@ -62,24 +62,69 @@ namespace QgsWfs
62
62
};
63
63
Q_ENUM ( Name )
64
64
65
+ /* *
66
+ * Constructor for QgsWfsParameter.
67
+ * \param name Name of the WMS parameter
68
+ * \param type Type of the parameter
69
+ * \param defaultValue Default value of the parameter
70
+ */
65
71
QgsWfsParameter ( const QgsWfsParameter::Name name = QgsWfsParameter::UNKNOWN,
66
72
const QVariant::Type type = QVariant::String,
67
73
const QVariant defaultValue = QVariant( " " ) );
68
74
75
+ /* *
76
+ * Default destructor for QgsWfsParameter.
77
+ */
69
78
virtual ~QgsWfsParameter () = default ;
70
79
80
+ /* *
81
+ * Converts the parameter into an integer.
82
+ * \returns An integer
83
+ * \throws QgsBadRequestException Invalid parameter exception
84
+ */
71
85
int toInt () const ;
86
+
87
+ /* *
88
+ * Converts the parameter into a list of string.
89
+ * \param exp The expression to use for splitting
90
+ * \returns A list of strings
91
+ * \throws QgsBadRequestException Invalid parameter exception
92
+ */
72
93
QStringList toStringListWithExp ( const QString &exp = " \\ (([^()]+)\\ )" ) const ;
94
+
95
+ /* *
96
+ * Converts the parameter into a rectangle.
97
+ * \returns A rectangle
98
+ * \throws QgsBadRequestException Invalid parameter exception
99
+ */
73
100
QgsRectangle toRectangle () const ;
74
101
102
+ /* *
103
+ * Raises an error in case of an invalid conversion.
104
+ * \throws QgsBadRequestException Invalid parameter exception
105
+ */
75
106
void raiseError () const ;
76
107
108
+ /* *
109
+ * Converts a parameter's name into its string representation.
110
+ */
77
111
static QString name ( const QgsWfsParameter::Name );
112
+
113
+ /* *
114
+ * Converts a string into a parameter's name (UNKNOWN in case of an
115
+ * invalid string).
116
+ */
78
117
static QgsWfsParameter::Name name ( const QString &name );
79
118
80
119
QgsWfsParameter::Name mName ;
81
120
};
82
121
122
+ /* *
123
+ * \ingroup server
124
+ * \class QgsWfs::QgsWfsParameters
125
+ * \brief Provides an interface to retrieve and manipulate WFS parameters received from the client.
126
+ * \since QGIS 3.0
127
+ */
83
128
class QgsWfsParameters : public QgsServerParameters
84
129
{
85
130
Q_GADGET
0 commit comments