KEYZlibStream.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3  * This file is part of the libetonyek project.
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 
10 #ifndef KEYZLIBSTREAM_H_INCLUDED
11 #define KEYZLIBSTREAM_H_INCLUDED
12 
13 #include "libetonyek_utils.h"
14 
15 namespace libetonyek
16 {
17 
18 class KEYZlibStream : public librevenge::RVNGInputStream
19 {
20 public:
21  KEYZlibStream(const RVNGInputStreamPtr_t &stream);
23 
24  bool isStructured();
25  unsigned subStreamCount();
26  const char *subStreamName(unsigned id);
27  bool existsSubStream(const char *)
28  {
29  return false;
30  }
31  librevenge::RVNGInputStream *getSubStreamByName(const char *name);
32  librevenge::RVNGInputStream *getSubStreamById(unsigned id);
33 
34  const unsigned char *read(unsigned long numBytes, unsigned long &numBytesRead);
35  int seek(long offset, librevenge::RVNG_SEEK_TYPE seekType);
36  long tell();
37  bool isEnd();
38 
39 private:
41 };
42 
43 }
44 
45 #endif // KEYZLIBSTREAM_H_INCLUDED
46 
47 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
Definition: KEY1Token.h:139
librevenge::RVNGInputStream * getSubStreamById(unsigned id)
Definition: KEYZlibStream.cpp:141
const char * name
Definition: KEY1Token.cpp:43
bool isEnd()
Definition: KEYZlibStream.cpp:161
long tell()
Definition: KEYZlibStream.cpp:156
bool existsSubStream(const char *)
Definition: KEYZlibStream.h:27
Definition: KEYZlibStream.h:18
RVNGInputStreamPtr_t m_stream
Definition: KEYZlibStream.h:40
const char * subStreamName(unsigned id)
Definition: KEYZlibStream.cpp:131
~KEYZlibStream()
Definition: KEYZlibStream.cpp:117
int seek(long offset, librevenge::RVNG_SEEK_TYPE seekType)
Definition: KEYZlibStream.cpp:151
librevenge::RVNGInputStream * getSubStreamByName(const char *name)
Definition: KEYZlibStream.cpp:136
unsigned subStreamCount()
Definition: KEYZlibStream.cpp:126
boost::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr_t
Definition: libetonyek_utils.h:88
const unsigned char * read(unsigned long numBytes, unsigned long &numBytesRead)
Definition: KEYZlibStream.cpp:146
KEYZlibStream(const RVNGInputStreamPtr_t &stream)
Definition: KEYZlibStream.cpp:108
bool isStructured()
Definition: KEYZlibStream.cpp:121

Generated for libetonyek by doxygen 1.8.5