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);
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;
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
internal data of a MWAWStringStream
Definition: MWAWStringStream.cxx:31
long tell() final
returns actual offset position
Definition: MWAWStringStream.cxx:123
std::vector< unsigned char > m_buffer
the stream buffer
Definition: MWAWStringStream.cxx:42
void append(const unsigned char *data, unsigned dataSize)
append some data at the end of the actual stream
Definition: MWAWStringStream.cxx:69
unsigned subStreamCount() final
returns the number of sub streams.
Definition: MWAWStringStream.cxx:163
MWAWStringStreamPrivate(const MWAWStringStreamPrivate &)=delete
const char * subStreamName(unsigned) final
returns the ith sub streams name
Definition: MWAWStringStream.cxx:168
librevenge::RVNGInputStream * getSubStreamById(unsigned) final
return a new stream for a ole zone
Definition: MWAWStringStream.cxx:178
MWAWStringStreamPrivate(const unsigned char *data, unsigned dataSize)
constructor
Definition: MWAWStringStream.cxx:50
MWAWStringStream & operator=(const MWAWStringStream &)=delete
MWAWStringStream(const MWAWStringStream &)=delete
bool existsSubStream(const char *name) final
returns true if a substream with name exists
Definition: MWAWStringStream.cxx:173
MWAWStringStream(const unsigned char *data, const unsigned int dataSize)
constructor
Definition: MWAWStringStream.cxx:77
long m_offset
the stream offset
Definition: MWAWStringStream.cxx:44
~MWAWStringStream() final
destructor
Definition: MWAWStringStream.cxx:83
void resize(unsigned long newSize)
resize the stream to some size
Definition: MWAWStringStream.cxx:64
bool isEnd() final
returns true if we are at the end of the section/file
Definition: MWAWStringStream.cxx:150
void append(const unsigned char *data, const unsigned int dataSize)
append some data at the end of the string
Definition: MWAWStringStream.cxx:87
void resize(unsigned long newSize)
resize the buffer stream (very low level)
Definition: MWAWStringStream.cxx:92
MWAWStringStreamPrivate & operator=(const MWAWStringStreamPrivate &)=delete
Definition: MWAWDocument.hxx:57
std::shared_ptr< MWAWStringStreamPrivate > m_data
the string stream data
Definition: MWAWStringStream.hxx:90
librevenge::RVNGInputStream * getSubStreamByName(const char *name) final
return a new stream for a ole zone
Definition: MWAWStringStream.cxx:183
const unsigned char * read(unsigned long numBytes, unsigned long &numBytesRead) final
! reads numbytes data.
Definition: MWAWStringStream.cxx:97
~MWAWStringStreamPrivate()
destructor
Definition: MWAWStringStream.cxx:60
bool isStructured() final
returns true if the stream is ole
Definition: MWAWStringStream.cxx:158
internal class used to create a RVNGInputStream from a unsigned char's pointer
Definition: MWAWStringStream.hxx:37
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20