| 
    QGIS API Documentation 3.99.0-Master (f78f5286a64)
    
   | 
 
WFS parameter received from the client. More...
#include <qgswfsparameters.h>

Public Types | |
| enum | Name {  UNKNOWN , OUTPUTFORMAT , RESULTTYPE , PROPERTYNAME , MAXFEATURES , STARTINDEX , SRSNAME , TYPENAME , FEATUREID , FILTER , BBOX , SORTBY , EXP_FILTER , GEOMETRYNAME }  | 
| Available parameters for WFS requests.  More... | |
Public Member Functions | |
| QgsWfsParameter (const QgsWfsParameter::Name name=QgsWfsParameter::UNKNOWN, const QMetaType::Type type=QMetaType::Type::QString, const QVariant defaultValue=QVariant("")) | |
| Constructor for QgsWfsParameter.   | |
| virtual | ~QgsWfsParameter ()=default | 
| void | raiseError () const | 
| Raises an error in case of an invalid conversion.   | |
| int | toInt () const | 
| Converts the parameter into an integer.   | |
| QgsRectangle | toRectangle () const | 
| Converts the parameter into a rectangle.   | |
| QStringList | toStringListWithExp (const QString &exp="\\(([^()]+)\\)") const | 
| Converts the parameter into a list of string.   | |
  Public Member Functions inherited from QgsServerParameterDefinition | |
| QgsServerParameterDefinition (const QMetaType::Type type=QMetaType::Type::QString, const QVariant defaultValue=QVariant("")) | |
| Constructor for QgsServerParameterDefinition.   | |
| Q_DECL_DEPRECATED | QgsServerParameterDefinition (const QVariant::Type type, const QVariant defaultValue=QVariant("")) SIP_DEPRECATED | 
| Constructor for QgsServerParameterDefinition.   | |
| virtual | ~QgsServerParameterDefinition ()=default | 
| virtual bool | isValid () const | 
Returns true if the parameter is valid, false otherwise.   | |
| QString | loadUrl (bool &ok) const | 
| Loads the data associated to the parameter converted into an url.   | |
| bool | toBool () const | 
| Converts the parameter into a boolean.   | |
| QColor | toColor (bool &ok) const | 
| Converts the parameter into a color.   | |
| QList< QColor > | toColorList (bool &ok, char delimiter=',', bool skipEmptyParts=true) const | 
| Converts the parameter into a list of colors.   | |
| double | toDouble (bool &ok) const | 
| Converts the parameter into a double.   | |
| QList< double > | toDoubleList (bool &ok, char delimiter=',', bool skipEmptyParts=true) const | 
| Converts the parameter into a list of doubles.   | |
| QStringList | toExpressionList () const | 
| Converts the parameter into a list of QGIS expressions.   | |
| QList< QgsGeometry > | toGeomList (bool &ok, char delimiter=',', bool skipEmptyParts=true) const | 
| Converts the parameter into a list of geometries.   | |
| int | toInt (bool &ok) const | 
| Converts the parameter into an integer.   | |
| QList< int > | toIntList (bool &ok, char delimiter=',', bool skipEmptyParts=true) const | 
| Converts the parameter into a list of integers.   | |
| QStringList | toOgcFilterList () const | 
| Converts the parameter into a list of OGC filters.   | |
| QgsRectangle | toRectangle (bool &ok) const | 
| Converts the parameter into a rectangle.   | |
| QString | toString (bool defaultValue=false) const | 
| Converts the parameter into a string.   | |
| QStringList | toStringList (char delimiter=',', bool skipEmptyParts=true) const | 
| Converts the parameter into a list of strings.   | |
| QUrl | toUrl (bool &ok) const | 
| Converts the parameter into an url.   | |
| QString | typeName () const | 
| Returns the type of the parameter as a string.   | |
Static Public Member Functions | |
| static QString | name (const QgsWfsParameter::Name) | 
| Converts a parameter's name into its string representation.   | |
| static QgsWfsParameter::Name | name (const QString &name) | 
| Converts a string into a parameter's name (UNKNOWN in case of an invalid string).   | |
  Static Public Member Functions inherited from QgsServerParameterDefinition | |
| static void | raiseError (const QString &msg) | 
| Raises an exception in case of an invalid parameters.   | |
Public Attributes | |
| QgsWfsParameter::Name | mName | 
  Public Attributes inherited from QgsServerParameterDefinition | |
| QVariant | mDefaultValue | 
| QMetaType::Type | mType | 
| QVariant | mValue | 
WFS parameter received from the client.
Definition at line 37 of file qgswfsparameters.h.
Available parameters for WFS requests.
| Enumerator | |
|---|---|
| UNKNOWN | |
| OUTPUTFORMAT | |
| RESULTTYPE | |
| PROPERTYNAME | |
| MAXFEATURES | |
| STARTINDEX | |
| SRSNAME | |
| TYPENAME | |
| FEATUREID | |
| FILTER | |
| BBOX | |
| SORTBY | |
| EXP_FILTER | |
| GEOMETRYNAME | |
Definition at line 43 of file qgswfsparameters.h.
| QgsWfs::QgsWfsParameter::QgsWfsParameter | ( | const QgsWfsParameter::Name | name = QgsWfsParameter::UNKNOWN,  | 
        
| const QMetaType::Type | type = QMetaType::Type::QString,  | 
        ||
| const QVariant | defaultValue = QVariant( "" )  | 
        ||
| ) | 
Constructor for QgsWfsParameter.
| name | Name of the WMS parameter | 
| type | Type of the parameter | 
| defaultValue | Default value of the parameter | 
Definition at line 29 of file qgswfsparameters.cpp.
      
  | 
  virtualdefault | 
      
  | 
  static | 
Converts a parameter's name into its string representation.
Definition at line 114 of file qgswfsparameters.cpp.
      
  | 
  static | 
Converts a string into a parameter's name (UNKNOWN in case of an invalid string).
Definition at line 120 of file qgswfsparameters.cpp.
| void QgsWfs::QgsWfsParameter::raiseError | ( | ) | const | 
Raises an error in case of an invalid conversion.
| QgsBadRequestException | Invalid parameter exception | 
Definition at line 108 of file qgswfsparameters.cpp.
| int QgsWfs::QgsWfsParameter::toInt | ( | ) | const | 
Converts the parameter into an integer.
| QgsBadRequestException | Invalid parameter exception | 
Definition at line 35 of file qgswfsparameters.cpp.
| QgsRectangle QgsWfs::QgsWfsParameter::toRectangle | ( | ) | const | 
Converts the parameter into a rectangle.
| QgsBadRequestException | Invalid parameter exception | 
Definition at line 48 of file qgswfsparameters.cpp.
| QStringList QgsWfs::QgsWfsParameter::toStringListWithExp | ( | const QString & | exp = "\\(([^()]+)\\)" | ) | const | 
Converts the parameter into a list of string.
| exp | The expression to use for splitting, pass an empty string to avoid splitting | 
| QgsBadRequestException | Invalid parameter exception | 
Definition at line 72 of file qgswfsparameters.cpp.
| QgsWfsParameter::Name QgsWfs::QgsWfsParameter::mName | 
Definition at line 111 of file qgswfsparameters.h.