HTMLHelpStream.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 libe-book 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 * For further information visit http://libebook.sourceforge.net
8 */
9
10#ifndef HTMLHELPSTREAM_H_INCLUDED
11#define HTMLHELPSTREAM_H_INCLUDED
12
13#include <memory>
14
15#include <librevenge-stream/librevenge-stream.h>
16
17 namespace libebook
18{
19
20 class HTMLHelpStream : public librevenge::RVNGInputStream
21{
22// disable copying
23 HTMLHelpStream(const HTMLHelpStream &other);
24 HTMLHelpStream &operator=(const HTMLHelpStream &other);
25
26 struct Impl;
27
28 public:
29 explicit HTMLHelpStream(const RVNGInputStreamPtr_t &input);
30 virtual ~HTMLHelpStream();
31
32 virtual bool isStructured();
33 virtual unsigned subStreamCount();
34 virtual const char *subStreamName(unsigned id);
35 virtual bool existsSubStream(const char *name);
36 virtual librevenge::RVNGInputStream *getSubStreamByName(const char *name);
37 virtual librevenge::RVNGInputStream *getSubStreamById(unsigned id);
38
39 virtual const unsigned char *read(unsigned long numBytes, unsigned long &numBytesRead);
40 virtual int seek(long offset, librevenge::RVNG_SEEK_TYPE seekType);
41 virtual long tell();
42 virtual bool isEnd();
43
44 private:
45 std::unique_ptr<Impl> m_impl;
46};
47
48}
49
50#endif // HTMLHELPSTREAM_H_INCLUDED
51
52/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
name
string name
Definition HTMLHelpStream.cpp:80
offset
unsigned offset
Definition SoftBookParser.cpp:74
libebook::HTMLHelpStream
Definition HTMLHelpStream.h:21
libebook::HTMLHelpStream::operator=
HTMLHelpStream & operator=(const HTMLHelpStream &other)
libebook::HTMLHelpStream::subStreamName
virtual const char * subStreamName(unsigned id)
Definition HTMLHelpStream.cpp:506
libebook::HTMLHelpStream::isEnd
virtual bool isEnd()
Definition HTMLHelpStream.cpp:595
libebook::HTMLHelpStream::tell
virtual long tell()
Definition HTMLHelpStream.cpp:590
libebook::HTMLHelpStream::read
virtual const unsigned char * read(unsigned long numBytes, unsigned long &numBytesRead)
Definition HTMLHelpStream.cpp:580
libebook::HTMLHelpStream::existsSubStream
virtual bool existsSubStream(const char *name)
Definition HTMLHelpStream.cpp:523
libebook::HTMLHelpStream::getSubStreamByName
virtual librevenge::RVNGInputStream * getSubStreamByName(const char *name)
Definition HTMLHelpStream.cpp:536
libebook::HTMLHelpStream::seek
virtual int seek(long offset, librevenge::RVNG_SEEK_TYPE seekType)
Definition HTMLHelpStream.cpp:585
libebook::HTMLHelpStream::~HTMLHelpStream
virtual ~HTMLHelpStream()
Definition HTMLHelpStream.cpp:489
libebook::HTMLHelpStream::m_impl
std::unique_ptr< Impl > m_impl
Definition HTMLHelpStream.h:45
libebook::HTMLHelpStream::isStructured
virtual bool isStructured()
Definition HTMLHelpStream.cpp:496
libebook::HTMLHelpStream::subStreamCount
virtual unsigned subStreamCount()
Definition HTMLHelpStream.cpp:501
libebook::HTMLHelpStream::getSubStreamById
virtual librevenge::RVNGInputStream * getSubStreamById(unsigned id)
Definition HTMLHelpStream.cpp:557
libebook::HTMLHelpStream::HTMLHelpStream
HTMLHelpStream(const HTMLHelpStream &other)
libebook
Definition BBeBCollector.cpp:19
libebook::RVNGInputStreamPtr_t
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr_t
Definition libebook_utils.h:54
libebook::HTMLHelpStream::Impl
Definition HTMLHelpStream.cpp:382