mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
21 lines
498 B
Plaintext
21 lines
498 B
Plaintext
/**
|
|
* Assorted helper methods for reading and writing chunks of XML
|
|
*/
|
|
class QgsXmlUtils
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgsxmlutils.h>
|
|
%End
|
|
public:
|
|
|
|
/* reading */
|
|
|
|
static Qgis::UnitType readMapUnits( const QDomElement& element );
|
|
static QgsRectangle readRectangle( const QDomElement& element );
|
|
|
|
/* writing */
|
|
|
|
static QDomElement writeMapUnits( Qgis::UnitType units, QDomDocument& doc );
|
|
static QDomElement writeRectangle( const QgsRectangle& rect, QDomDocument& doc );
|
|
};
|