2016-01-04 22:51:18 +11:00
|
|
|
/**
|
|
|
|
* Assorted helper methods for reading and writing chunks of XML
|
|
|
|
*/
|
|
|
|
class QgsXmlUtils
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsxmlutils.h>
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
|
|
|
/* reading */
|
|
|
|
|
2016-07-21 22:01:38 +10:00
|
|
|
static Qgis::UnitType readMapUnits( const QDomElement& element );
|
2016-01-04 22:51:18 +11:00
|
|
|
static QgsRectangle readRectangle( const QDomElement& element );
|
|
|
|
|
|
|
|
/* writing */
|
|
|
|
|
2016-07-21 22:01:38 +10:00
|
|
|
static QDomElement writeMapUnits( Qgis::UnitType units, QDomDocument& doc );
|
2016-01-04 22:51:18 +11:00
|
|
|
static QDomElement writeRectangle( const QgsRectangle& rect, QDomDocument& doc );
|
|
|
|
};
|