Marble

DgmlTagWriter.cpp
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2011 Utku Aydın <[email protected]>
4 //
5 
6 #include "DgmlTagWriter.h"
7 
8 #include "GeoWriter.h"
9 #include "DgmlElementDictionary.h"
10 
11 
12 namespace Marble
13 {
14 
15 static GeoTagWriterRegistrar s_writerDgml( GeoTagWriter::QualifiedName( "", dgml::dgmlTag_nameSpace20 ), new DgmlTagWriter() );
16 
17 bool DgmlTagWriter::write( const GeoNode *node, GeoWriter& writer ) const
18 {
19  Q_UNUSED(node);
20  writer.writeStartElement( "dgml" );
21  writer.writeAttribute( "xmlns", dgml::dgmlTag_nameSpace20 );
22 
23  // Do not write an end element for document handlers
24  return true;
25 }
26 
27 }
QPair< QString, QString > QualifiedName
Object Name and Namespace Pair This type is intended to be used in a similar way to.
Definition: GeoTagWriter.h:44
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Sep 25 2023 03:50:18 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.