|
| XmlElementWriter (QXmlStreamWriter &xml, const QLatin1String &element_name) |
| Begins a new element with the given name on the XML writer. More...
|
|
| XmlElementWriter (const XmlElementWriter &)=delete |
|
| XmlElementWriter (XmlElementWriter &&)=delete |
|
| ~XmlElementWriter () |
| Writes the end tag of the element. More...
|
|
XmlElementWriter & | operator= (const XmlElementWriter &)=delete |
|
XmlElementWriter & | operator= (XmlElementWriter &&)=delete |
|
void | writeAttribute (const QLatin1String &qualifiedName, const char *value) |
| Writes an attribute with the given name and value. More...
|
|
void | writeAttribute (const QLatin1String &qualifiedName, const QString &value) |
| Writes an attribute with the given name and value. More...
|
|
void | writeAttribute (const QLatin1String &qualifiedName, const double value) |
| Writes an attribute with the given name and value. More...
|
|
void | writeAttribute (const QLatin1String &qualifiedName, const double value, int precision) |
| Writes an attribute with the given name and value. More...
|
|
void | writeAttribute (const QLatin1String &qualifiedName, const float value) |
| Writes an attribute with the given name and value. More...
|
|
void | writeAttribute (const QLatin1String &qualifiedName, const float value, int precision) |
| Writes an attribute with the given name and value. More...
|
|
void | writeAttribute (const QLatin1String &qualifiedName, const qint64 value) |
| Writes an attribute with the given name and value. More...
|
|
void | writeAttribute (const QLatin1String &qualifiedName, const int value) |
| Writes an attribute with the given name and value. More...
|
|
void | writeAttribute (const QLatin1String &qualifiedName, const unsigned int value) |
| Writes an attribute with the given name and value. More...
|
|
void | writeAttribute (const QLatin1String &qualifiedName, const long unsigned int value) |
| Writes an attribute with the given name and value. More...
|
|
void | writeAttribute (const QLatin1String &qualifiedName, const quint64 value) |
| Writes an attribute with the given name and value. More...
|
|
void | writeAttribute (const QLatin1String &qualifiedName, bool value) |
| Writes an attribute with the given name and value. More...
|
|
void | write (const QRectF &area) |
| Writes attributes named left, top, width and height, representing the given area. More...
|
|
void | write (const QRectF &area, int precision) |
| Writes attributes named left, top, width and height, representing the given area. More...
|
|
void | write (const QSizeF &size) |
| Writes attributes named width and height, representing the given size. More...
|
|
void | write (const QSizeF &size, int precision) |
| Writes attributes named width and height, representing the given size. More...
|
|
void | write (const MapCoordVector &coords) |
| Writes the coordinates vector as a simple text format. More...
|
|
void | write (const QHash< QString, QString > &tags) |
| Writes tags. More...
|
|
The XmlElementWriter helps to construct a single element in an XML document.
It starts a new element on a QXmlStreamWriter when it is constructed, and it writes the end tag when it is destructed. After construction, but before (child) elements are created on the QXmlStreamWriter, it offers convenient functions for writing named attributes of common types.
Typical use:
{
writeChildElements(xml_writer);
}