RVNGZipStream.h Source File documentation

RVNGZipStream.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2 /* librevenge
3 * Version: MPL 2.0 / LGPLv2.1+
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * Major Contributor(s):
10 * Copyright (C) 2012 Fridrich Strba (fridrich.strba@bluewin.ch)
11 *
12 * For minor contributions see the git repository.
13 *
14 * Alternatively, the contents of this file may be used under the terms
15 * of the GNU Lesser General Public License Version 2.1 or later
16 * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
17 * applicable instead of those above.
18 */
19
20 #ifndef RVNGZIPSTREAM_H
21 #define RVNGZIPSTREAM_H
22
23 #include <string>
24 #include <vector>
25
26 namespace librevenge
27 {
28
29 class RVNGInputStream;
30
31 class RVNGZipStream
32 {
33 public:
34 static bool isZipFile(RVNGInputStream *input);
35
36 static std::vector<std::string> getSubStreamNamesList(RVNGInputStream *input);
37 static RVNGInputStream *getSubstream(RVNGInputStream *input, const char *name);
38 };
39
40 }
41
42 #endif // RVNGZIPSTREAM_H
43 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
librevenge::RVNGInputStream::read
virtual const unsigned char * read(unsigned long numBytes, unsigned long &numBytesRead)=0
Tries to read a given number of bytes starting from the current position inside the input stream.
comment
std::string comment
Definition: RVNGZipStream.cpp:98
internal_attr
unsigned short internal_attr
Definition: RVNGZipStream.cpp:75
librevenge::RVNG_SEEK_END
@ RVNG_SEEK_END
Definition: RVNGStream.h:30
crc32
unsigned crc32
Definition: RVNGZipStream.cpp:46
librevenge::RVNGInputStream::seek
virtual int seek(long offset, RVNG_SEEK_TYPE seekType)=0
Moves to the next location inside the input stream.
librevenge-stream.h
disk_num
unsigned short disk_num
Definition: RVNGZipStream.cpp:74
lastmod_date
unsigned short lastmod_date
Definition: RVNGZipStream.cpp:45
external_attr
unsigned external_attr
Definition: RVNGZipStream.cpp:76
creator_version
unsigned short creator_version
Definition: RVNGZipStream.cpp:62
cdir_disk
unsigned short cdir_disk
Definition: RVNGZipStream.cpp:92
uncompressed_size
unsigned uncompressed_size
Definition: RVNGZipStream.cpp:48
librevenge::RVNGZipStream::getSubstream
static RVNGInputStream * getSubstream(RVNGInputStream *input, const char *name)
Definition: RVNGZipStream.cpp:426
librevenge::RVNGZipStream::getSubStreamNamesList
static std::vector< std::string > getSubStreamNamesList(RVNGInputStream *input)
Definition: RVNGZipStream.cpp:421
cdir_offset
unsigned cdir_offset
Definition: RVNGZipStream.cpp:96
lastmod_time
unsigned short lastmod_time
Definition: RVNGZipStream.cpp:44
cdir_entries
unsigned short cdir_entries
Definition: RVNGZipStream.cpp:94
RVNGZipStream.h
librevenge::RVNG_SEEK_CUR
@ RVNG_SEEK_CUR
Definition: RVNGStream.h:28
comment_size
unsigned short comment_size
Definition: RVNGZipStream.cpp:97
filename
std::string filename
Definition: RVNGZipStream.cpp:51
librevenge::RVNG_SEEK_SET
@ RVNG_SEEK_SET
Definition: RVNGStream.h:29
extra_field
std::string extra_field
Definition: RVNGZipStream.cpp:52
filename_size
unsigned short filename_size
Definition: RVNGZipStream.cpp:49
librevenge::RVNGStringStream
Definition: RVNGStreamImplementation.h:59
min_version
unsigned short min_version
Definition: RVNGZipStream.cpp:41
compression
unsigned short compression
Definition: RVNGZipStream.cpp:43
extra_field_size
unsigned short extra_field_size
Definition: RVNGZipStream.cpp:50
librevenge::RVNGZipStream
Definition: RVNGZipStream.h:32
file_comment_size
unsigned short file_comment_size
Definition: RVNGZipStream.cpp:73
CDIR_END_SIG
#define CDIR_END_SIG
Definition: RVNGZipStream.cpp:107
cdir_size
unsigned cdir_size
Definition: RVNGZipStream.cpp:95
librevenge::RVNGInputStream
Definition: RVNGStream.h:34
offset
unsigned offset
Definition: RVNGZipStream.cpp:77
CDIR_ENTRY_SIG
#define CDIR_ENTRY_SIG
Definition: RVNGZipStream.cpp:105
general_flag
unsigned short general_flag
Definition: RVNGZipStream.cpp:42
librevenge::RVNGZipStream::isZipFile
static bool isZipFile(RVNGInputStream *input)
Definition: RVNGZipStream.cpp:398
librevenge
Definition: RVNGBinaryData.cpp:39
compressed_size
unsigned compressed_size
Definition: RVNGZipStream.cpp:47
file_comment
std::string file_comment
Definition: RVNGZipStream.cpp:80
LOC_FILE_HEADER_SIG
#define LOC_FILE_HEADER_SIG
Definition: RVNGZipStream.cpp:106
disk_entries
unsigned short disk_entries
Definition: RVNGZipStream.cpp:93