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;
internal data of a MWAWStringStream
Definition: MWAWStringStream.cxx:30
librevenge::RVNGInputStream * getSubStreamById(unsigned) final
return a new stream for a ole zone
Definition: MWAWStringStream.cxx:166
~MWAWStringStream() final
destructor
Definition: MWAWStringStream.cxx:76
const unsigned char * read(unsigned long numBytes, unsigned long &numBytesRead) final
! reads numbytes data.
Definition: MWAWStringStream.cxx:85
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
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
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
bool existsSubStream(const char *name) final
returns true if a substream with name exists
Definition: MWAWStringStream.cxx:161
internal class used to create a RVNGInputStream from a unsigned char's pointer
Definition: MWAWStringStream.hxx:36
MWAWStringStream & operator=(const MWAWStringStream &)=delete
librevenge::RVNGInputStream * getSubStreamByName(const char *name) final
return a new stream for a ole zone
Definition: MWAWStringStream.cxx:171
MWAWStringStream(const unsigned char *data, const unsigned int dataSize)
constructor
Definition: MWAWStringStream.cxx:70
std::shared_ptr< MWAWStringStreamPrivate > m_data
the string stream data
Definition: MWAWStringStream.hxx:87
long tell() final
returns actual offset position
Definition: MWAWStringStream.cxx:111
bool isStructured() final
returns true if the stream is ole
Definition: MWAWStringStream.cxx:146