NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
zip++.hpp
Go to the documentation of this file.
1/*****************************************************************************
2 NumeRe: Framework fuer Numerische Rechnungen
3 Copyright (C) 2015 Erik Haenel et al.
4
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17******************************************************************************/
18
19
20
21#ifndef ZIPPP_HPP
22#define ZIPPP_HPP
23
24#include <string>
25#include <iostream>
26#include <windows.h>
27#include <tchar.h>
28//#include <locale>
29//#include <codecvt>
30#include "zip.h"
31#include "unzip.h"
32
33
35{
36 private:
37 HZIP hZip;
39 bool bIsOpen;
40
41 public:
42 Zipfile();
43 ~Zipfile();
44 bool open(const std::string& sZipFilename, int nOpenmode = 0);
45 inline bool is_open() const
46 {return bIsOpen;}
47 bool close();
48 bool addFile(const std::string& sFilename);
49 std::string getZipContent();
50 std::string getZipItem(const std::string& sFilename);
51};
52
53#endif
54
bool open(const std::string &sZipFilename, int nOpenmode=0)
Definition: zip++.cpp:38
Zipfile()
Definition: zip++.cpp:23
std::string getZipContent()
Definition: zip++.cpp:79
bool addFile(const std::string &sFilename)
Definition: zip++.cpp:70
bool close()
Definition: zip++.cpp:59
~Zipfile()
Definition: zip++.cpp:29
bool bIsOpen
Definition: zip++.hpp:39
HZIP hZip
Definition: zip++.hpp:37
ZIPENTRY zEntry
Definition: zip++.hpp:38
bool is_open() const
Definition: zip++.hpp:45
std::string getZipItem(const std::string &sFilename)
Definition: zip++.cpp:106
Definition: unzip.h:21