Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef PDXLZ77STREAM_H_INCLUDED
00018 #define PDXLZ77STREAM_H_INCLUDED
00019
00020 #include <boost/scoped_ptr.hpp>
00021
00022 #include <libwpd-stream/libwpd-stream.h>
00023
00024 namespace libebook
00025 {
00026
00027 class PDXLZ77Stream : public WPXInputStream
00028 {
00029
00030 PDXLZ77Stream(const PDXLZ77Stream &other);
00031 PDXLZ77Stream &operator=(const PDXLZ77Stream &other);
00032
00033 public:
00034 PDXLZ77Stream(WPXInputStream *stream);
00035 virtual ~PDXLZ77Stream();
00036
00037 virtual bool isOLEStream();
00038 virtual WPXInputStream *getDocumentOLEStream(const char *name);
00039
00040 virtual const unsigned char *read(unsigned long numBytes, unsigned long &numBytesRead);
00041 virtual int seek(long offset, WPX_SEEK_TYPE seekType);
00042 virtual long tell();
00043 virtual bool atEOS();
00044
00045 private:
00046 boost::scoped_ptr<WPXInputStream> m_stream;
00047 };
00048
00049 }
00050
00051 #endif // PDXLZ77STREAM_H_INCLUDED
00052
00053