QGIS API Documentation 3.41.0-Master (cea29feecf2)
|
Encapsulates the definition of a GDAL configuration option. More...
#include <qgsgdalutils.h>
Public Types | |
enum class | Type { Invalid , Select , Boolean , Text , Int , Double } |
Option types. More... | |
Static Public Member Functions | |
static QgsGdalOption | fromXmlNode (const CPLXMLNode *node) |
Creates a QgsGdalOption from an XML node. | |
static QList< QgsGdalOption > | optionsFromXml (const CPLXMLNode *node) |
Returns a list of all GDAL options from an XML node. | |
Public Attributes | |
QVariant | defaultValue |
Default value. | |
QString | description |
Option description. | |
QVariant | maximum |
Maximum acceptable value. | |
QVariant | minimum |
Minimum acceptable value. | |
QString | name |
Option name. | |
QStringList | options |
Available choices, for Select options. | |
QString | scope |
Option scope. | |
Type | type = Type::Invalid |
Option type. | |
Encapsulates the definition of a GDAL configuration option.
Definition at line 35 of file qgsgdalutils.h.
|
strong |
Option types.
Enumerator | |
---|---|
Invalid | Invalid option. |
Select | Selection option. |
Boolean | Boolean option. |
Text | Text option. |
Int | Integer option. |
Double | Double option. |
Definition at line 42 of file qgsgdalutils.h.
|
static |
Creates a QgsGdalOption from an XML node.
Returns an invalid option if the node could not be interpreted as a GDAL option.
Definition at line 36 of file qgsgdalutils.cpp.
|
static |
Returns a list of all GDAL options from an XML node.
Definition at line 143 of file qgsgdalutils.cpp.
QVariant QgsGdalOption::defaultValue |
Default value.
Definition at line 65 of file qgsgdalutils.h.
QString QgsGdalOption::description |
Option description.
Definition at line 59 of file qgsgdalutils.h.
QVariant QgsGdalOption::maximum |
Maximum acceptable value.
Definition at line 71 of file qgsgdalutils.h.
QVariant QgsGdalOption::minimum |
Minimum acceptable value.
Definition at line 68 of file qgsgdalutils.h.
QString QgsGdalOption::name |
Option name.
Definition at line 53 of file qgsgdalutils.h.
QStringList QgsGdalOption::options |
Available choices, for Select options.
Definition at line 62 of file qgsgdalutils.h.
QString QgsGdalOption::scope |
Option scope.
Definition at line 74 of file qgsgdalutils.h.
Type QgsGdalOption::type = Type::Invalid |
Option type.
Definition at line 56 of file qgsgdalutils.h.