QGIS API Documentation  2.99.0-Master (c558d51)
Static Public Member Functions | List of all members
QgsXmlUtils Class Reference

Assorted helper methods for reading and writing chunks of XML. More...

#include <qgsxmlutils.h>

Static Public Member Functions

static QgsUnitTypes::DistanceUnit readMapUnits (const QDomElement &element)
 Decodes a distance unit from a DOM element. More...
 
static QgsRectangle readRectangle (const QDomElement &element)
 
static QDomElement writeMapUnits (QgsUnitTypes::DistanceUnit units, QDomDocument &doc)
 Encodes a distance unit to a DOM element. More...
 
static QDomElement writeRectangle (const QgsRectangle &rect, QDomDocument &doc)
 

Detailed Description

Assorted helper methods for reading and writing chunks of XML.

Definition at line 29 of file qgsxmlutils.h.

Member Function Documentation

QgsUnitTypes::DistanceUnit QgsXmlUtils::readMapUnits ( const QDomElement &  element)
static

Decodes a distance unit from a DOM element.

Parameters
elementDOM element to decode
Returns
distance units
See also
writeMapUnits()

Definition at line 23 of file qgsxmlutils.cpp.

QgsRectangle QgsXmlUtils::readRectangle ( const QDomElement &  element)
static

Definition at line 36 of file qgsxmlutils.cpp.

QDomElement QgsXmlUtils::writeMapUnits ( QgsUnitTypes::DistanceUnit  units,
QDomDocument &  doc 
)
static

Encodes a distance unit to a DOM element.

Parameters
unitsunits to encode
docDOM document
Returns
element containing encoded units
See also
readMapUnits()

Definition at line 66 of file qgsxmlutils.cpp.

QDomElement QgsXmlUtils::writeRectangle ( const QgsRectangle rect,
QDomDocument &  doc 
)
static

Definition at line 78 of file qgsxmlutils.cpp.


The documentation for this class was generated from the following files: