RVNGZipStream.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
00002 /* librevenge
00003  * Version: MPL 2.0 / LGPLv2.1+
00004  *
00005  * This Source Code Form is subject to the terms of the Mozilla Public
00006  * License, v. 2.0. If a copy of the MPL was not distributed with this
00007  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
00008  *
00009  * Major Contributor(s):
00010  * Copyright (C) 2012 Fridrich Strba (fridrich.strba@bluewin.ch)
00011  *
00012  * For minor contributions see the git repository.
00013  *
00014  * Alternatively, the contents of this file may be used under the terms
00015  * of the GNU Lesser General Public License Version 2.1 or later
00016  * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
00017  * applicable instead of those above.
00018  */
00019 
00020 #ifndef RVNGZIPSTREAM_H
00021 #define RVNGZIPSTREAM_H
00022 
00023 #include <string>
00024 #include <vector>
00025 
00026 namespace librevenge
00027 {
00028 
00029 class RVNGInputStream;
00030 
00031 class RVNGZipStream
00032 {
00033 public:
00034         static bool isZipFile(RVNGInputStream *input);
00035 
00036         static std::vector<std::string> getSubStreamNamesList(RVNGInputStream *input);
00037         static RVNGInputStream *getSubstream(RVNGInputStream *input, const char *name);
00038 };
00039 
00040 }
00041 
00042 #endif // RVNGZIPSTREAM_H
00043 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */