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);
WPSStringStreamPrivate * m_data
the string stream data
Definition: WPSStringStream.h:90
bool isStructured()
returns true if the stream is ole
Definition: WPSStringStream.cpp:154
int seek(long offset, librevenge::RVNG_SEEK_TYPE seekType)
seeks to a offset position, from actual, beginning or ending position
Definition: WPSStringStream.cpp:122
internal class used to create a RVNGInputStream from a unsigned char's pointer
Definition: WPSStringStream.h:39
WPSStringStream & operator=(const WPSStringStream &)
librevenge::RVNGInputStream * getSubStreamByName(const char *name)
return a new stream for a ole zone
Definition: WPSStringStream.cpp:179
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 unsigned char *data, const unsigned int dataSize)
constructor
Definition: WPSStringStream.cpp:75
bool existsSubStream(const char *name)
returns true if a substream with name exists
Definition: WPSStringStream.cpp:169
~WPSStringStream()
destructor
Definition: WPSStringStream.cpp:81
const char * subStreamName(unsigned)
returns the ith sub streams name
Definition: WPSStringStream.cpp:164
long tell()
returns actual offset position
Definition: WPSStringStream.cpp:117
unsigned subStreamCount()
returns the number of sub streams.
Definition: WPSStringStream.cpp:159
internal data of a WPSStringStream
Definition: WPSStringStream.cpp:34
const unsigned char * read(unsigned long numBytes, unsigned long &numBytesRead)
! reads numbytes data.
Definition: WPSStringStream.cpp:91
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