22 #ifndef MWAW_STRING_STREAM_HXX
23 #define MWAW_STRING_STREAM_HXX
25 #include <librevenge-stream/librevenge-stream.h>
43 void append(
const unsigned char *data,
const unsigned int dataSize);
48 const unsigned char *
read(
unsigned long numBytes,
unsigned long &numBytesRead);
54 int seek(
long offset, librevenge::RVNG_SEEK_TYPE seekType);
const char * subStreamName(unsigned)
returns the ith sub streams name
Definition: MWAWStringStream.cxx:154
internal data of a MWAWStringStream
Definition: MWAWStringStream.cxx:30
bool existsSubStream(const char *name)
returns true if a substream with name exists
Definition: MWAWStringStream.cxx:159
const unsigned char * read(unsigned long numBytes, unsigned long &numBytesRead)
! reads numbytes data.
Definition: MWAWStringStream.cxx:83
void append(const unsigned char *data, const unsigned int dataSize)
append some data at the end of the string
Definition: MWAWStringStream.cxx:78
librevenge::RVNGInputStream * getSubStreamById(unsigned)
return a new stream for a ole zone
Definition: MWAWStringStream.cxx:164
librevenge::RVNGInputStream * getSubStreamByName(const char *name)
return a new stream for a ole zone
Definition: MWAWStringStream.cxx:169
MWAWStringStream & operator=(const MWAWStringStream &)
long tell()
returns actual offset position
Definition: MWAWStringStream.cxx:109
internal class used to create a RVNGInputStream from a unsigned char's pointer
Definition: MWAWStringStream.hxx:34
int seek(long offset, librevenge::RVNG_SEEK_TYPE seekType)
seeks to a offset position, from actual, beginning or ending position
Definition: MWAWStringStream.cxx:114
bool isStructured()
returns true if the stream is ole
Definition: MWAWStringStream.cxx:144
bool isEnd()
returns true if we are at the end of the section/file
Definition: MWAWStringStream.cxx:136
unsigned subStreamCount()
returns the number of sub streams.
Definition: MWAWStringStream.cxx:149
MWAWStringStream(const unsigned char *data, const unsigned int dataSize)
constructor
Definition: MWAWStringStream.cxx:67
MWAWStringStreamPrivate * m_data
the string stream data
Definition: MWAWStringStream.hxx:85
~MWAWStringStream()
destructor
Definition: MWAWStringStream.cxx:73