IWORKZlibStream.h Source File documentation

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

IWORKZlibStream.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 IWORKZLIBSTREAM_H_INCLUDED
11 #define IWORKZLIBSTREAM_H_INCLUDED
12
13 #include "libetonyek_utils.h"
14
15 namespace libetonyek
16 {
17
18 class IWORKZlibStream : public librevenge::RVNGInputStream
19 {
20 public:
21 IWORKZlibStream(const RVNGInputStreamPtr_t &stream);
22 ~IWORKZlibStream();
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:
40 RVNGInputStreamPtr_t m_stream;
41 };
42
43 }
44
45 #endif // IWORKZLIBSTREAM_H_INCLUDED
46
47 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek
Definition: IWORKBezierElement.cpp:18
libetonyek::IWORKZlibStream::getSubStreamById
librevenge::RVNGInputStream * getSubStreamById(unsigned id)
Definition: IWORKZlibStream.cpp:142
libetonyek::IWORKZlibStream::getSubStreamByName
librevenge::RVNGInputStream * getSubStreamByName(const char *name)
Definition: IWORKZlibStream.cpp:137
libetonyek::IWORKZlibStream::m_stream
RVNGInputStreamPtr_t m_stream
Definition: IWORKZlibStream.h:40
libetonyek::IWORKZlibStream::subStreamCount
unsigned subStreamCount()
Definition: IWORKZlibStream.cpp:127
libetonyek::IWORKZlibStream::isStructured
bool isStructured()
Definition: IWORKZlibStream.cpp:122
libetonyek::IWORKZlibStream::existsSubStream
bool existsSubStream(const char *)
Definition: IWORKZlibStream.h:27
name
const char * name
Definition: IWORKToken.cpp:43
libetonyek::IWORKZlibStream
Definition: IWORKZlibStream.h:18
libetonyek::IWORKZlibStream::read
const unsigned char * read(unsigned long numBytes, unsigned long &numBytesRead)
Definition: IWORKZlibStream.cpp:147
libetonyek::IWORKZlibStream::subStreamName
const char * subStreamName(unsigned id)
Definition: IWORKZlibStream.cpp:132
libetonyek::IWORKZlibStream::isEnd
bool isEnd()
Definition: IWORKZlibStream.cpp:162
libetonyek::RVNGInputStreamPtr_t
boost::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr_t
Definition: libetonyek_utils.h:111
libetonyek::IWORKZlibStream::IWORKZlibStream
IWORKZlibStream(const RVNGInputStreamPtr_t &stream)
Definition: IWORKZlibStream.cpp:109
libetonyek::IWORKZlibStream::seek
int seek(long offset, librevenge::RVNG_SEEK_TYPE seekType)
Definition: IWORKZlibStream.cpp:152
libetonyek::IWORKToken::offset
Definition: IWORKToken.h:331
libetonyek_utils.h
libetonyek::IWORKZlibStream::~IWORKZlibStream
~IWORKZlibStream()
Definition: IWORKZlibStream.cpp:118
libetonyek::IWORKZlibStream::tell
long tell()
Definition: IWORKZlibStream.cpp:157