File indexing completed on 2024-12-08 10:16:03

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 }