PDXLZ77Stream.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* libe-book
3  * Version: MPL 2.0 / LGPLv2.1+
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  * Alternatively, the contents of this file may be used under the terms
10  * of the GNU Lesser General Public License Version 2.1 or later
11  * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
12  * applicable instead of those above.
13  *
14  * For further information visit http://libebook.sourceforge.net
15  */
16 
17 #ifndef PDXLZ77STREAM_H_INCLUDED
18 #define PDXLZ77STREAM_H_INCLUDED
19 
20 #include <boost/scoped_ptr.hpp>
21 
22 #include <libwpd-stream/libwpd-stream.h>
23 
24 namespace libebook
25 {
26 
27 class PDXLZ77Stream : public WPXInputStream
28 {
29 // disable copying
30  PDXLZ77Stream(const PDXLZ77Stream &other);
31  PDXLZ77Stream &operator=(const PDXLZ77Stream &other);
32 
33 public:
34  PDXLZ77Stream(WPXInputStream *stream);
35  virtual ~PDXLZ77Stream();
36 
37  virtual bool isOLEStream();
38  virtual WPXInputStream *getDocumentOLEStream(const char *name);
39 
40  virtual const unsigned char *read(unsigned long numBytes, unsigned long &numBytesRead);
41  virtual int seek(long offset, WPX_SEEK_TYPE seekType);
42  virtual long tell();
43  virtual bool atEOS();
44 
45 private:
46  boost::scoped_ptr<WPXInputStream> m_stream;
47 };
48 
49 }
50 
51 #endif // PDXLZ77STREAM_H_INCLUDED
52 
53 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
boost::scoped_ptr< WPXInputStream > m_stream
Definition: PDXLZ77Stream.h:46
Definition: PDXLZ77Stream.h:27
virtual int seek(long offset, WPX_SEEK_TYPE seekType)
Definition: PDXLZ77Stream.cpp:128
virtual bool isOLEStream()
Definition: PDXLZ77Stream.cpp:113
virtual bool atEOS()
Definition: PDXLZ77Stream.cpp:138
PDXLZ77Stream(const PDXLZ77Stream &other)
unsigned offset
Definition: IMPParser.cpp:78
virtual long tell()
Definition: PDXLZ77Stream.cpp:133
virtual WPXInputStream * getDocumentOLEStream(const char *name)
Definition: PDXLZ77Stream.cpp:118
PDXLZ77Stream & operator=(const PDXLZ77Stream &other)
const char * name
Definition: FB2Token.cpp:26
virtual ~PDXLZ77Stream()
Definition: PDXLZ77Stream.cpp:109
virtual const unsigned char * read(unsigned long numBytes, unsigned long &numBytesRead)
Definition: PDXLZ77Stream.cpp:123

Generated for libe-book by doxygen 1.8.5