odsstream
Loading...
Searching...
No Matches
ziptsvoutputstream.h
1
8/*******************************************************************************
9 * Copyright (c) 2022 Olivier Langella <Olivier.Langella@u-psud.fr>.
10 *
11 * This file is part of libodsstream.
12 *
13 * libodsstream is free software: you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation, either version 3 of the License, or
16 * (at your option) any later version.
17 *
18 * libodsstream is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License
24 * along with libodsstream. If not, see <http://www.gnu.org/licenses/>.
25 *
26 ******************************************************************************/
27
28
29#pragma once
30
31#include "tsvdirectorywriter.h"
32#include <QFile>
33#include <quazipfile.h>
38{
39 public:
43 ZipTsvOutputStream(const QString &zipfilename);
44
45
49 virtual ~ZipTsvOutputStream();
50
51 virtual void writeSheet(const QString &sheetName) override;
52
53
54 void close() override;
55
56
57 private:
58 void closeCurrentZipSheet();
59
60
61 private:
62 QFile *mpa_fileZipArchive = nullptr;
63 QuaZip *mpa_quaZip = nullptr;
64 QuaZipFile *mpa_outFileInZip = nullptr;
65};
Definition tsvdirectorywriter.h:33
Definition ziptsvoutputstream.h:38
virtual ~ZipTsvOutputStream()
Definition ziptsvoutputstream.cpp:65
virtual void writeSheet(const QString &sheetName) override
open a new sheet
Definition ziptsvoutputstream.cpp:118