Marble

KmlFolderTagWriter.cpp
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2010 Gaurav Gupta <[email protected]>
4 //
5 
6 #include "KmlFolderTagWriter.h"
7 
8 #include "GeoDataFolder.h"
9 #include "GeoWriter.h"
10 #include "KmlElementDictionary.h"
11 
12 #include "GeoDataTypes.h"
13 
14 #include <QVector>
15 
16 namespace Marble
17 {
18 
19 static GeoTagWriterRegistrar s_writerDocument( GeoTagWriter::QualifiedName(GeoDataTypes::GeoDataFolderType,
20  kml::kmlTag_nameSpaceOgc22),
21  new KmlFolderTagWriter() );
22 
23 bool KmlFolderTagWriter::writeMid( const GeoNode *node, GeoWriter& writer ) const
24 {
25  const GeoDataFolder *folder = static_cast<const GeoDataFolder*>(node);
26 
27  //Write all containing features
29  QVector<GeoDataFeature*>::ConstIterator const end = folder->constEnd();
30 
31  for ( ; it != end; ++it ) {
32  writeElement( *it, writer );
33  }
34 
35  return true;
36 }
37 
38 KmlFolderTagWriter::KmlFolderTagWriter() :
39  KmlFeatureTagWriter( kml::kmlTag_Folder )
40 {
41  // nothing to do
42 }
43 
44 }
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.
QVector::const_iterator constBegin() const const
const QList< QKeySequence > & end()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Sep 25 2023 03:50:19 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.