Go to the documentation of this file.
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);
50 const unsigned char *
read(
unsigned long numBytes,
unsigned long &numBytesRead)
final;
56 int seek(
long offset, librevenge::RVNG_SEEK_TYPE seekType)
final;
87 std::shared_ptr<MWAWStringStreamPrivate>
m_data;
int seek(long offset, librevenge::RVNG_SEEK_TYPE seekType) final
seeks to a offset position, from actual, beginning or ending position
Definition: MWAWStringStream.cxx:116
internal data of a MWAWStringStream
Definition: MWAWStringStream.cxx:30
long tell() final
returns actual offset position
Definition: MWAWStringStream.cxx:111
std::vector< unsigned char > m_buffer
the stream buffer
Definition: MWAWStringStream.cxx:40
void append(const unsigned char *data, unsigned dataSize)
append some data at the end of the actual stream
Definition: MWAWStringStream.cxx:62
unsigned subStreamCount() final
returns the number of sub streams.
Definition: MWAWStringStream.cxx:151
const char * subStreamName(unsigned) final
returns the ith sub streams name
Definition: MWAWStringStream.cxx:156
librevenge::RVNGInputStream * getSubStreamById(unsigned) final
return a new stream for a ole zone
Definition: MWAWStringStream.cxx:166
MWAWStringStreamPrivate(const unsigned char *data, unsigned dataSize)
constructor
Definition: MWAWStringStream.cxx:48
MWAWStringStream & operator=(const MWAWStringStream &)=delete
bool existsSubStream(const char *name) final
returns true if a substream with name exists
Definition: MWAWStringStream.cxx:161
MWAWStringStream(const unsigned char *data, const unsigned int dataSize)
constructor
Definition: MWAWStringStream.cxx:70
long m_offset
the stream offset
Definition: MWAWStringStream.cxx:42
~MWAWStringStream() final
destructor
Definition: MWAWStringStream.cxx:76
bool isEnd() final
returns true if we are at the end of the section/file
Definition: MWAWStringStream.cxx:138
void append(const unsigned char *data, const unsigned int dataSize)
append some data at the end of the string
Definition: MWAWStringStream.cxx:80
MWAWStringStreamPrivate & operator=(const MWAWStringStreamPrivate &)=delete
Definition: MWAWDocument.hxx:56
std::shared_ptr< MWAWStringStreamPrivate > m_data
the string stream data
Definition: MWAWStringStream.hxx:87
librevenge::RVNGInputStream * getSubStreamByName(const char *name) final
return a new stream for a ole zone
Definition: MWAWStringStream.cxx:171
const unsigned char * read(unsigned long numBytes, unsigned long &numBytesRead) final
! reads numbytes data.
Definition: MWAWStringStream.cxx:85
~MWAWStringStreamPrivate()
destructor
Definition: MWAWStringStream.cxx:58
bool isStructured() final
returns true if the stream is ole
Definition: MWAWStringStream.cxx:146
internal class used to create a RVNGInputStream from a unsigned char's pointer
Definition: MWAWStringStream.hxx:36
Generated on Fri Mar 20 2020 01:38:19 for libmwaw by
doxygen 1.8.17