Marble::GeoWriter
#include <GeoWriter.h>
Additional Inherited Members | |
Properties inherited from QXmlStreamWriter | |
autoFormatting | |
autoFormattingIndent | |
Detailed Description
Standard Marble way of writing XML This class is intended to be a standardised way of writing XML for marble.
It works with the GeoData classes and writes XML based on the type of output format that the writer is currently working with.
Definition at line 25 of file GeoWriter.h.
Constructor & Destructor Documentation
◆ GeoWriter()
Marble::GeoWriter::GeoWriter | ( | ) |
Definition at line 17 of file GeoWriter.cpp.
Member Function Documentation
◆ setDocumentType()
void Marble::GeoWriter::setDocumentType | ( | const QString & | documentType | ) |
Set the current document type.
The current Document Type defines which set of handlers are to be used when writing the GeoDocument. This string should correspond with the string used to register the required Tag Writers in
- See also
- GeoTagWriter
Definition at line 70 of file GeoWriter.cpp.
◆ write()
The main API call to use the XML writer.
To use the XML writer you need to provide an IODevice to write the XML to and a QList of GeoDataFeatures which contains the data you wish to write. To define the type of XML document that is to be written you need to set the current Document Type for this GeoWriter. See
- See also
- setDocumentType()
Definition at line 23 of file GeoWriter.cpp.
◆ writeElement() [1/2]
Convenience method to write <key>value</key>
Definition at line 82 of file GeoWriter.cpp.
◆ writeElement() [2/2]
void Marble::GeoWriter::writeElement | ( | const QString & | namespaceUri, |
const QString & | key, | ||
const QString & | value ) |
Convenience method to write <key>value</key> with key prefixed format namespaceUri
.
Definition at line 75 of file GeoWriter.cpp.
◆ writeOptionalAttribute()
void Marble::GeoWriter::writeOptionalAttribute | ( | const QString & | key, |
const QString & | value, | ||
const QString & | defaultValue = QString() ) |
writeOptionalAttribute Convenience method to write k=v attributes if value is not equal to defaultValue
Definition at line 96 of file GeoWriter.cpp.
◆ writeOptionalElement() [1/2]
void Marble::GeoWriter::writeOptionalElement | ( | const QString & | key, |
const QString & | value, | ||
const QString & | defaultValue = QString() ) |
Convenience method to write <key>value</key> if value is not equal to defaultValue.
Otherwise, nothing is written.
Definition at line 89 of file GeoWriter.cpp.
◆ writeOptionalElement() [2/2]
|
inline |
Definition at line 73 of file GeoWriter.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:52:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.