KOSMIndoorMap

abstractwriter.h
1/*
2 SPDX-FileCopyrightText: 2022 Volker Krause <vkrause@kde.org>
3 SPDX-License-Identifier: LGPL-2.0-or-later
4*/
5
6#ifndef OSM_ABSTRACTWRITER_H
7#define OSM_ABSTRACTWRITER_H
8
9#include "kosm_export.h"
10
11class QIODevice;
12
13namespace OSM {
14
15class DataSet;
16
17/** Abstract base class for OSM file format writers. */
18class KOSM_EXPORT AbstractWriter
19{
20public:
21 virtual ~AbstractWriter();
22
23 /** Write the given data set into @p io.
24 * @param io has to be open.
25 */
26 void write(const OSM::DataSet &dataSet, QIODevice *io);
27
28protected:
29 virtual void writeToIODevice(const OSM::DataSet &dataSet, QIODevice *io) = 0;
30};
31
32}
33
34#endif // OSM_ABSTRACTWRITER_H
Abstract base class for OSM file format writers.
A set of nodes, ways and relations.
Definition datatypes.h:343
Low-level types and functions to work with raw OSM data as efficiently as possible.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 12:02:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.