File indexing completed on 2024-10-27 13:24:18

0001 /*
0002     SPDX-FileCopyrightText: 2022 Volker Krause <vkrause@kde.org>
0003     SPDX-License-Identifier: LGPL-2.0-or-later
0004 */
0005 
0006 #include "abstractwriter.h"
0007 
0008 #include <QIODevice>
0009 
0010 #include <cassert>
0011 
0012 using namespace OSM;
0013 
0014 AbstractWriter::~AbstractWriter() = default;
0015 
0016 void AbstractWriter::write(const OSM::DataSet &dataSet, QIODevice *io)
0017 {
0018     assert(io);
0019     assert(io->isOpen());
0020     writeToIODevice(dataSet, io);
0021 }