22#ifndef MWAW_STRING_STREAM_HXX
23#define MWAW_STRING_STREAM_HXX
27#include <librevenge-stream/librevenge-stream.h>
45 void append(
const unsigned char *data,
const unsigned int dataSize);
47 void resize(
unsigned long newSize);
53 const unsigned char *
read(
unsigned long numBytes,
unsigned long &numBytesRead)
final;
59 int seek(
long offset, librevenge::RVNG_SEEK_TYPE seekType)
final;
90 std::shared_ptr<MWAWStringStreamPrivate>
m_data;
internal data of a MWAWStringStream
Definition: MWAWStringStream.cxx:31
internal class used to create a RVNGInputStream from a unsigned char's pointer
Definition: MWAWStringStream.hxx:37
const char * subStreamName(unsigned) final
returns the ith sub streams name
Definition: MWAWStringStream.cxx:168
bool existsSubStream(const char *name) final
returns true if a substream with name exists
Definition: MWAWStringStream.cxx:173
librevenge::RVNGInputStream * getSubStreamByName(const char *name) final
return a new stream for a ole zone
Definition: MWAWStringStream.cxx:183
long tell() final
returns actual offset position
Definition: MWAWStringStream.cxx:123
void append(const unsigned char *data, const unsigned int dataSize)
append some data at the end of the string
Definition: MWAWStringStream.cxx:87
bool isStructured() final
returns true if the stream is ole
Definition: MWAWStringStream.cxx:158
void resize(unsigned long newSize)
resize the buffer stream (very low level)
Definition: MWAWStringStream.cxx:92
std::shared_ptr< MWAWStringStreamPrivate > m_data
the string stream data
Definition: MWAWStringStream.hxx:90
MWAWStringStream(const MWAWStringStream &)=delete
const unsigned char * read(unsigned long numBytes, unsigned long &numBytesRead) final
! reads numbytes data.
Definition: MWAWStringStream.cxx:97
MWAWStringStream & operator=(const MWAWStringStream &)=delete
int seek(long offset, librevenge::RVNG_SEEK_TYPE seekType) final
seeks to a offset position, from actual, beginning or ending position
Definition: MWAWStringStream.cxx:128
unsigned subStreamCount() final
returns the number of sub streams.
Definition: MWAWStringStream.cxx:163
bool isEnd() final
returns true if we are at the end of the section/file
Definition: MWAWStringStream.cxx:150
~MWAWStringStream() final
destructor
Definition: MWAWStringStream.cxx:83
librevenge::RVNGInputStream * getSubStreamById(unsigned) final
return a new stream for a ole zone
Definition: MWAWStringStream.cxx:178