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
15namespace libetonyek
16{
17
18class IWORKZlibStream : public librevenge::RVNGInputStream
19{
20public:
21 explicit IWORKZlibStream(const RVNGInputStreamPtr_t &stream);
22 ~IWORKZlibStream() override;
23
24 bool isStructured() override;
25 unsigned subStreamCount() override;
26 const char *subStreamName(unsigned id) override;
27 bool existsSubStream(const char *) override
28 {
29 return false;
30 }
31 librevenge::RVNGInputStream *getSubStreamByName(const char *name) override;
32 librevenge::RVNGInputStream *getSubStreamById(unsigned id) override;
33
34 const unsigned char *read(unsigned long numBytes, unsigned long &numBytesRead) override;
35 int seek(long offset, librevenge::RVNG_SEEK_TYPE seekType) override;
36 long tell() override;
37 bool isEnd() override;
38
39private:
41};
42
43}
44
45#endif // IWORKZLIBSTREAM_H_INCLUDED
46
47/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
Definition IWORKZlibStream.h:19
RVNGInputStreamPtr_t m_stream
Definition IWORKZlibStream.h:40
IWORKZlibStream(const RVNGInputStreamPtr_t &stream)
Definition IWORKZlibStream.cpp:110
bool isStructured() override
Definition IWORKZlibStream.cpp:123
long tell() override
Definition IWORKZlibStream.cpp:158
const unsigned char * read(unsigned long numBytes, unsigned long &numBytesRead) override
Definition IWORKZlibStream.cpp:148
bool isEnd() override
Definition IWORKZlibStream.cpp:163
int seek(long offset, librevenge::RVNG_SEEK_TYPE seekType) override
Definition IWORKZlibStream.cpp:153
~IWORKZlibStream() override
Definition IWORKZlibStream.cpp:119
bool existsSubStream(const char *) override
Definition IWORKZlibStream.h:27
librevenge::RVNGInputStream * getSubStreamByName(const char *name) override
Definition IWORKZlibStream.cpp:138
librevenge::RVNGInputStream * getSubStreamById(unsigned id) override
Definition IWORKZlibStream.cpp:143
unsigned subStreamCount() override
Definition IWORKZlibStream.cpp:128
const char * subStreamName(unsigned id) override
Definition IWORKZlibStream.cpp:133
@ offset
Definition IWORKToken.h:594
@ name
Definition IWORKToken.h:585
Definition IWORKBezierElement.cpp:21
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr_t
Definition libetonyek_utils.h:82

Generated for libetonyek by doxygen 1.12.0