Go to the documentation of this file.
22 #ifndef STOFF_STRING_STREAM_HXX
23 #define STOFF_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::unique_ptr<STOFFStringStreamPrivate>
m_data;
void append(const unsigned char *data, const unsigned int dataSize)
append some data at the end of the string
Definition: STOFFStringStream.cxx:77
internal data of a STOFFStringStream
Definition: STOFFStringStream.cxx:30
int seek(long offset, librevenge::RVNG_SEEK_TYPE seekType) final
seeks to a offset position, from actual, beginning or ending position
Definition: STOFFStringStream.cxx:113
void append(const unsigned char *data, unsigned dataSize)
append some data at the end of the actual stream
Definition: STOFFStringStream.cxx:59
librevenge::RVNGInputStream * getSubStreamById(unsigned) final
return a new stream for a ole zone
Definition: STOFFStringStream.cxx:163
~STOFFStringStreamPrivate()
destructor
Definition: STOFFStringStream.cxx:55
bool existsSubStream(const char *name) final
returns true if a substream with name exists
Definition: STOFFStringStream.cxx:158
const unsigned char * read(unsigned long numBytes, unsigned long &numBytesRead) final
! reads numbytes data.
Definition: STOFFStringStream.cxx:82
STOFFStringStreamPrivate(const unsigned char *data, unsigned dataSize)
constructor
Definition: STOFFStringStream.cxx:48
bool isStructured() final
returns true if the stream is ole
Definition: STOFFStringStream.cxx:143
STOFFStringStream(const unsigned char *data, const unsigned int dataSize)
constructor
Definition: STOFFStringStream.cxx:67
STOFFStringStream & operator=(const STOFFStringStream &)
long m_offset
the stream offset
Definition: STOFFStringStream.cxx:42
librevenge::RVNGInputStream * getSubStreamByName(const char *name) final
return a new stream for a ole zone
Definition: STOFFStringStream.cxx:168
unsigned subStreamCount() final
returns the number of sub streams.
Definition: STOFFStringStream.cxx:148
STOFFStringStreamPrivate & operator=(const STOFFStringStreamPrivate &)
bool isEnd() final
returns true if we are at the end of the section/file
Definition: STOFFStringStream.cxx:135
~STOFFStringStream() final
destructor
Definition: STOFFStringStream.cxx:73
Definition: STOFFDocument.hxx:42
std::vector< unsigned char > m_buffer
the stream buffer
Definition: STOFFStringStream.cxx:40
internal class used to create a RVNGInputStream from a unsigned char's pointer
Definition: STOFFStringStream.hxx:36
const char * subStreamName(unsigned) final
returns the ith sub streams name
Definition: STOFFStringStream.cxx:153
std::unique_ptr< STOFFStringStreamPrivate > m_data
the string stream data
Definition: STOFFStringStream.hxx:87
long tell() final
returns actual offset position
Definition: STOFFStringStream.cxx:108
Generated on Mon Jan 20 2020 23:02:18 for libstaroffice by
doxygen 1.8.16