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
17namespace libebook
18{
19
20class HTMLHelpStream : public librevenge::RVNGInputStream
21{
22// disable copying
25
26 struct Impl;
27
28public:
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
44private:
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: */
string name
Definition: HTMLHelpStream.cpp:80
unsigned offset
Definition: SoftBookParser.cpp:74
Definition: HTMLHelpStream.h:21
HTMLHelpStream & operator=(const HTMLHelpStream &other)
virtual const char * subStreamName(unsigned id)
Definition: HTMLHelpStream.cpp:506
virtual bool isEnd()
Definition: HTMLHelpStream.cpp:595
virtual long tell()
Definition: HTMLHelpStream.cpp:590
virtual const unsigned char * read(unsigned long numBytes, unsigned long &numBytesRead)
Definition: HTMLHelpStream.cpp:580
virtual bool existsSubStream(const char *name)
Definition: HTMLHelpStream.cpp:523
virtual librevenge::RVNGInputStream * getSubStreamByName(const char *name)
Definition: HTMLHelpStream.cpp:536
virtual int seek(long offset, librevenge::RVNG_SEEK_TYPE seekType)
Definition: HTMLHelpStream.cpp:585
virtual ~HTMLHelpStream()
Definition: HTMLHelpStream.cpp:489
std::unique_ptr< Impl > m_impl
Definition: HTMLHelpStream.h:45
virtual bool isStructured()
Definition: HTMLHelpStream.cpp:496
virtual unsigned subStreamCount()
Definition: HTMLHelpStream.cpp:501
virtual librevenge::RVNGInputStream * getSubStreamById(unsigned id)
Definition: HTMLHelpStream.cpp:557
HTMLHelpStream(const HTMLHelpStream &other)
@ input
Definition: EBOOKHTMLToken.h:89
Definition: BBeBCollector.cpp:19
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr_t
Definition: libebook_utils.h:54
Definition: HTMLHelpStream.cpp:382

Generated for libe-book by doxygen 1.9.3