QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
qgsxmlutils.h
Go to the documentation of this file.
1 #ifndef QGSXMLUTILS_H
2 #define QGSXMLUTILS_H
3 
4 class QDomDocument;
5 class QDomElement;
6 
7 class QgsRectangle;
8 
9 #include "qgis.h"
10 
14 class CORE_EXPORT QgsXmlUtils
15 {
16  public:
17 
18  /* reading */
19 
20  static QGis::UnitType readMapUnits( const QDomElement& element );
21  static QgsRectangle readRectangle( const QDomElement& element );
22 
23  /* writing */
24 
25  static QDomElement writeMapUnits( QGis::UnitType units, QDomDocument& doc );
26  static QDomElement writeRectangle( const QgsRectangle& rect, QDomDocument& doc );
27 };
28 
29 
30 #endif // QGSXMLUTILS_H
A rectangle specified with double values.
Definition: qgsrectangle.h:35
Assorted helper methods for reading and writing chunks of XML.
Definition: qgsxmlutils.h:14
UnitType
Map units that qgis supports.
Definition: qgis.h:229