File indexing completed on 2024-05-19 03:53:14
0001 // SPDX-License-Identifier: LGPL-2.1-or-later 0002 // 0003 // SPDX-FileCopyrightText: 2015 Stanciu Marius-Valeriu <stanciumarius94@gmail.com> 0004 // 0005 0006 #ifndef MARBLE_OSMDOCUMENTTAGTRANSLATOR_H 0007 #define MARBLE_OSMDOCUMENTTAGTRANSLATOR_H 0008 0009 #include "GeoTagWriter.h" 0010 0011 namespace Marble 0012 { 0013 /** 0014 This helper class organizes a GeoDataDocument to 0015 meet the following OSM standard structure: 0016 @code 0017 <xml> 0018 <bounds> 0019 0020 block of nodes: ( <node>...) 1st 0021 block of ways: ( <way> ...) 2nd 0022 block of relations: ( <relation> ...) 3rd 0023 @endcode 0024 0025 See https://wiki.openstreetmap.org/wiki/OSM_XML#Contents 0026 0027 */ 0028 0029 class OsmDocumentTagTranslator : public GeoTagWriter 0030 { 0031 public: 0032 bool write( const GeoNode *node, GeoWriter& writer ) const override; 0033 }; 0034 0035 } 0036 0037 #endif 0038