Go to the documentation of this file.
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);
librevenge::RVNGInputStream * getSubStreamById(unsigned)
return a new stream for a ole zone
Definition: MWAWStringStream.cxx:167
internal data of a MWAWStringStream
Definition: MWAWStringStream.cxx:31
std::vector< unsigned char > m_buffer
the stream buffer
Definition: MWAWStringStream.cxx:40
MWAWStringStreamPrivate * m_data
the string stream data
Definition: MWAWStringStream.hxx:85
void append(const unsigned char *data, unsigned dataSize)
append some data at the end of the actual stream
Definition: MWAWStringStream.cxx:62
const unsigned char * read(unsigned long numBytes, unsigned long &numBytesRead)
! reads numbytes data.
Definition: MWAWStringStream.cxx:86
long tell()
returns actual offset position
Definition: MWAWStringStream.cxx:112
bool existsSubStream(const char *name)
returns true if a substream with name exists
Definition: MWAWStringStream.cxx:162
MWAWStringStream(const MWAWStringStream &)
librevenge::RVNGInputStream * getSubStreamByName(const char *name)
return a new stream for a ole zone
Definition: MWAWStringStream.cxx:172
MWAWStringStream & operator=(const MWAWStringStream &)
MWAWStringStreamPrivate(const unsigned char *data, unsigned dataSize)
constructor
Definition: MWAWStringStream.cxx:48
MWAWStringStreamPrivate & operator=(const MWAWStringStreamPrivate &)
bool isStructured()
returns true if the stream is ole
Definition: MWAWStringStream.cxx:147
unsigned subStreamCount()
returns the number of sub streams.
Definition: MWAWStringStream.cxx:152
MWAWStringStream(const unsigned char *data, const unsigned int dataSize)
constructor
Definition: MWAWStringStream.cxx:70
long m_offset
the stream offset
Definition: MWAWStringStream.cxx:42
void append(const unsigned char *data, const unsigned int dataSize)
append some data at the end of the string
Definition: MWAWStringStream.cxx:81
~MWAWStringStream()
destructor
Definition: MWAWStringStream.cxx:76
Definition: MWAWDocument.hxx:57
int seek(long offset, librevenge::RVNG_SEEK_TYPE seekType)
seeks to a offset position, from actual, beginning or ending position
Definition: MWAWStringStream.cxx:117
const char * subStreamName(unsigned)
returns the ith sub streams name
Definition: MWAWStringStream.cxx:157
bool isEnd()
returns true if we are at the end of the section/file
Definition: MWAWStringStream.cxx:139
~MWAWStringStreamPrivate()
destructor
Definition: MWAWStringStream.cxx:58
MWAWStringStreamPrivate(const MWAWStringStreamPrivate &)
internal class used to create a RVNGInputStream from a unsigned char's pointer
Definition: MWAWStringStream.hxx:35
Generated on Wed Jun 17 2020 06:30:12 for libmwaw by
doxygen 1.8.18