MWAWStringStream.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; c-default-style: "k&r"; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2 -*- */
2 
3 /* libmwaw
4 * Version: MPL 2.0 / LGPLv2+
5 *
6 * The contents of this file are subject to the Mozilla Public License Version
7 * 2.0 (the "License"); you may not use this file except in compliance with
8 * the License or as specified alternatively below. You may obtain a copy of
9 * the License at http://www.mozilla.org/MPL/
10 *
11 * Software distributed under the License is distributed on an "AS IS" basis,
12 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 * for the specific language governing rights and limitations under the
14 * License.
15 *
16 * Alternatively, the contents of this file may be used under the terms of
17 * the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
18 * in which case the provisions of the LGPLv2+ are applicable
19 * instead of those above.
20 */
21 
22 #include <librevenge-stream/librevenge-stream.h>
23 
25 
26 class MWAWStringStream: public librevenge::RVNGInputStream
27 {
28 public:
29  MWAWStringStream(const unsigned char *data, const unsigned int dataSize);
31 
32  const unsigned char *read(unsigned long numBytes, unsigned long &numBytesRead);
33  long tell();
34  int seek(long offset, librevenge::RVNG_SEEK_TYPE seekType);
35  bool isEnd();
36 
37  bool isStructured();
38  unsigned subStreamCount();
39  const char *subStreamName(unsigned);
40  bool existsSubStream(const char *name);
41  librevenge::RVNGInputStream *getSubStreamByName(const char *name);
42  librevenge::RVNGInputStream *getSubStreamById(unsigned);
43 
44 private:
46  MWAWStringStream(const MWAWStringStream &); // copy is not allowed
47  MWAWStringStream &operator=(const MWAWStringStream &); // assignment is not allowed
48 };
49 
50 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
const char * subStreamName(unsigned)
Definition: MWAWStringStream.cxx:133
Definition: MWAWStringStream.cxx:29
MWAWStringStreamPrivate * d
Definition: MWAWStringStream.hxx:45
bool existsSubStream(const char *name)
Definition: MWAWStringStream.cxx:138
const unsigned char * read(unsigned long numBytes, unsigned long &numBytesRead)
Definition: MWAWStringStream.cxx:63
librevenge::RVNGInputStream * getSubStreamById(unsigned)
Definition: MWAWStringStream.cxx:143
librevenge::RVNGInputStream * getSubStreamByName(const char *name)
Definition: MWAWStringStream.cxx:148
MWAWStringStream & operator=(const MWAWStringStream &)
long tell()
Definition: MWAWStringStream.cxx:89
Definition: MWAWStringStream.hxx:26
int seek(long offset, librevenge::RVNG_SEEK_TYPE seekType)
Definition: MWAWStringStream.cxx:94
bool isStructured()
Definition: MWAWStringStream.cxx:123
bool isEnd()
Definition: MWAWStringStream.cxx:115
unsigned subStreamCount()
Definition: MWAWStringStream.cxx:128
MWAWStringStream(const unsigned char *data, const unsigned int dataSize)
Definition: MWAWStringStream.cxx:52
~MWAWStringStream()
Definition: MWAWStringStream.cxx:58

Generated for libmwaw by doxygen 1.8.8