KEYZipStream.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 libetonyek 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  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  */
9 
10 #ifndef KEYZIPSTREAM_H_INCLUDED
11 #define KEYZIPSTREAM_H_INCLUDED
12 
13 #include <vector>
14 
15 #include "libetonyek_utils.h"
16 
17 namespace libetonyek
18 {
19 
20 struct KEYZipStreamImpl;
21 
22 class KEYZipStream : public WPXInputStream
23 {
24 public:
25  KEYZipStream(const WPXInputStreamPtr_t &input);
26  ~KEYZipStream();
27 
28  bool isOLEStream();
29  WPXInputStream *getDocumentOLEStream(const char *);
30 
31  const unsigned char *read(unsigned long numBytes, unsigned long &numBytesRead);
32  int seek(long offset, WPX_SEEK_TYPE seekType);
33  long tell();
34  bool atEOS();
35 
36 private:
37  KEYZipStream(const KEYZipStream &);
40 };
41 
42 } // namespace libetonyek
43 
44 #endif // KEYZIPSTREAM_H_INCLUDED
45 
46 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
Definition: KEY1Token.h:139
long tell()
Definition: KEYZipStream.cpp:106
bool isOLEStream()
Definition: KEYZipStream.cpp:116
const unsigned char * read(unsigned long numBytes, unsigned long &numBytesRead)
Definition: KEYZipStream.cpp:96
WPXInputStream * getDocumentOLEStream(const char *)
Definition: KEYZipStream.cpp:121
int seek(long offset, WPX_SEEK_TYPE seekType)
Definition: KEYZipStream.cpp:101
KEYZipStream(const WPXInputStreamPtr_t &input)
Definition: KEYZipStream.cpp:84
boost::shared_ptr< WPXInputStream > WPXInputStreamPtr_t
Definition: libetonyek_utils.h:88
bool atEOS()
Definition: KEYZipStream.cpp:111
Definition: KEYZipStream.h:22
~KEYZipStream()
Definition: KEYZipStream.cpp:90
KEYZipStreamImpl * m_pImpl
Definition: KEYZipStream.h:39
KEYZipStream & operator=(const KEYZipStream &)
Definition: KEYZipStream.cpp:61

Generated for libetonyek by doxygen 1.8.5