File indexing completed on 2024-06-02 04:45:45
0001 /* 0002 SPDX-FileCopyrightText: 2020 Volker Krause <vkrause@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KOSMINDOORMAP_LEVELPARSER_P_H 0008 #define KOSMINDOORMAP_LEVELPARSER_P_H 0009 0010 #include "kosmindoormap_export.h" 0011 0012 #include <functional> 0013 0014 namespace OSM { 0015 class Element; 0016 } 0017 0018 class QByteArray; 0019 0020 namespace KOSMIndoorMap { 0021 0022 /** 0023 * Parses OSM level tags 0024 * @see https://wiki.openstreetmap.org/wiki/Key:level 0025 * @see https://wiki.openstreetmap.org/wiki/Key:repeat_on 0026 * @see https://wiki.openstreetmap.org/wiki/Simple_Indoor_Tagging#Multi-level_features_and_repeated_features 0027 */ 0028 namespace LevelParser 0029 { 0030 /** @internal only exported for unit tests. */ 0031 KOSMINDOORMAP_EXPORT void parse(QByteArray &&level, OSM::Element e, const std::function<void(int, OSM::Element)> &callback); 0032 } 0033 0034 } 0035 0036 #endif // KOSMINDOORMAP_LEVELPARSER_P_H