Marble

DgmlTagWriter.cpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2011 Utku Aydın <utkuaydin34@gmail.com>
4//
5
6#include "DgmlTagWriter.h"
7
8#include "DgmlElementDictionary.h"
9#include "GeoWriter.h"
10
11namespace Marble
12{
13
14static GeoTagWriterRegistrar s_writerDgml(GeoTagWriter::QualifiedName({}, QString::fromLatin1(dgml::dgmlTag_nameSpace20)), new DgmlTagWriter());
15
16bool DgmlTagWriter::write(const GeoNode *node, GeoWriter &writer) const
17{
18 Q_UNUSED(node);
19 writer.writeStartElement("dgml");
20 writer.writeAttribute("xmlns", QString::fromUtf8(dgml::dgmlTag_nameSpace20));
21
22 // Do not write an end element for document handlers
23 return true;
24}
25
26}
QPair< QString, QString > QualifiedName
Object Name and Namespace Pair This type is intended to be used in a similar way to.
Binds a QML item to a specific geodetic location in screen coordinates.
QString fromLatin1(QByteArrayView str)
QString fromUtf8(QByteArrayView str)
This file is part of the KDE documentation.
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.