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);
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: */
Definition: EBOOKHTMLToken.h:89
virtual bool isEnd()
Definition: HTMLHelpStream.cpp:595
virtual long tell()
Definition: HTMLHelpStream.cpp:590
std::unique_ptr< Impl > m_impl
Definition: HTMLHelpStream.h:45
unsigned offset
Definition: SoftBookParser.cpp:74
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr_t
Definition: libebook_utils.h:54
virtual librevenge::RVNGInputStream * getSubStreamByName(const char *name)
Definition: HTMLHelpStream.cpp:536
Definition: HTMLHelpStream.cpp:381
HTMLHelpStream & operator=(const HTMLHelpStream &other)
Definition: HTMLHelpStream.h:20
virtual librevenge::RVNGInputStream * getSubStreamById(unsigned id)
Definition: HTMLHelpStream.cpp:557
const char * name
Definition: EBOOKHTMLToken.cpp:44
virtual ~HTMLHelpStream()
Definition: HTMLHelpStream.cpp:489
virtual int seek(long offset, librevenge::RVNG_SEEK_TYPE seekType)
Definition: HTMLHelpStream.cpp:585
virtual bool isStructured()
Definition: HTMLHelpStream.cpp:496
virtual unsigned subStreamCount()
Definition: HTMLHelpStream.cpp:501
virtual const unsigned char * read(unsigned long numBytes, unsigned long &numBytesRead)
Definition: HTMLHelpStream.cpp:580
Definition: BBeBCollector.cpp:18
HTMLHelpStream(const HTMLHelpStream &other)
virtual bool existsSubStream(const char *name)
Definition: HTMLHelpStream.cpp:523
virtual const char * subStreamName(unsigned id)
Definition: HTMLHelpStream.cpp:506

Generated for libe-book by doxygen 1.8.14