27#ifndef WPS_STRING_STREAM_H
28#define WPS_STRING_STREAM_H
32#include <librevenge-stream/librevenge-stream.h>
45 WPSStringStream(
const unsigned char *data,
const unsigned int dataSize);
50 void append(
const unsigned char *data,
const unsigned int dataSize);
55 const unsigned char *
read(
unsigned long numBytes,
unsigned long &numBytesRead)
final;
61 int seek(
long offset, librevenge::RVNG_SEEK_TYPE seekType)
final;
92 std::unique_ptr<WPSStringStreamPrivate>
m_data;
internal data of a WPSStringStream
Definition WPSStringStream.cpp:35
bool isEnd() final
returns true if we are at the end of the section/file
Definition WPSStringStream.cpp:145
std::unique_ptr< WPSStringStreamPrivate > m_data
the string stream data
Definition WPSStringStream.h:92
WPSStringStream(const unsigned char *data, const unsigned int dataSize)
constructor
Definition WPSStringStream.cpp:75
WPSStringStream(const WPSStringStream &)=delete
librevenge::RVNGInputStream * getSubStreamByName(const char *name) final
return a new stream for a ole zone
Definition WPSStringStream.cpp:178
WPSStringStream & operator=(const WPSStringStream &)=delete
const unsigned char * read(unsigned long numBytes, unsigned long &numBytesRead) final
!
Definition WPSStringStream.cpp:90
int seek(long offset, librevenge::RVNG_SEEK_TYPE seekType) final
seeks to a offset position, from actual, beginning or ending position
Definition WPSStringStream.cpp:121
~WPSStringStream() final
destructor
Definition WPSStringStream.cpp:81
void append(const unsigned char *data, const unsigned int dataSize)
append some data at the end of the string
Definition WPSStringStream.cpp:85
unsigned subStreamCount() final
returns the number of sub streams.
Definition WPSStringStream.cpp:158
bool existsSubStream(const char *name) final
returns true if a substream with name exists
Definition WPSStringStream.cpp:168
bool isStructured() final
returns true if the stream is ole
Definition WPSStringStream.cpp:153
librevenge::RVNGInputStream * getSubStreamById(unsigned) final
return a new stream for a ole zone
Definition WPSStringStream.cpp:173
const char * subStreamName(unsigned) final
returns the ith sub streams name
Definition WPSStringStream.cpp:163
long tell() final
returns actual offset position
Definition WPSStringStream.cpp:116