27#ifndef WPS_STRING_STREAM_H
28#define WPS_STRING_STREAM_H
30#include <librevenge-stream/librevenge-stream.h>
43 WPSStringStream(
const unsigned char *data,
const unsigned int dataSize);
48 void append(
const unsigned char *data,
const unsigned int dataSize);
53 const unsigned char *
read(
unsigned long numBytes,
unsigned long &numBytesRead);
59 int seek(
long offset, librevenge::RVNG_SEEK_TYPE seekType);
internal data of a WPSStringStream
Definition: WPSStringStream.cpp:35
internal class used to create a RVNGInputStream from a unsigned char's pointer
Definition: WPSStringStream.h:40
WPSStringStream & operator=(const WPSStringStream &)
bool isEnd()
returns true if we are at the end of the section/file
Definition: WPSStringStream.cpp:146
librevenge::RVNGInputStream * getSubStreamById(unsigned)
return a new stream for a ole zone
Definition: WPSStringStream.cpp:174
const char * subStreamName(unsigned)
returns the ith sub streams name
Definition: WPSStringStream.cpp:164
int seek(long offset, librevenge::RVNG_SEEK_TYPE seekType)
seeks to a offset position, from actual, beginning or ending position
Definition: WPSStringStream.cpp:122
~WPSStringStream()
destructor
Definition: WPSStringStream.cpp:81
unsigned subStreamCount()
returns the number of sub streams.
Definition: WPSStringStream.cpp:159
const unsigned char * read(unsigned long numBytes, unsigned long &numBytesRead)
! reads numbytes data.
Definition: WPSStringStream.cpp:91
WPSStringStreamPrivate * m_data
the string stream data
Definition: WPSStringStream.h:90
void append(const unsigned char *data, const unsigned int dataSize)
append some data at the end of the string
Definition: WPSStringStream.cpp:86
WPSStringStream(const WPSStringStream &)
bool isStructured()
returns true if the stream is ole
Definition: WPSStringStream.cpp:154
long tell()
returns actual offset position
Definition: WPSStringStream.cpp:117
librevenge::RVNGInputStream * getSubStreamByName(const char *name)
return a new stream for a ole zone
Definition: WPSStringStream.cpp:179
bool existsSubStream(const char *name)
returns true if a substream with name exists
Definition: WPSStringStream.cpp:169