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;
std::unique_ptr< STOFFStringStreamPrivate > m_data
the string stream data
Definition: STOFFStringStream.hxx:87
const unsigned char * read(unsigned long numBytes, unsigned long &numBytesRead) final
! reads numbytes data.
Definition: STOFFStringStream.cxx:82
STOFFStringStream & operator=(const STOFFStringStream &)
const char * subStreamName(unsigned) final
returns the ith sub streams name
Definition: STOFFStringStream.cxx:153
long tell() final
returns actual offset position
Definition: STOFFStringStream.cxx:108
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
bool isStructured() final
returns true if the stream is ole
Definition: STOFFStringStream.cxx:143
librevenge::RVNGInputStream * getSubStreamById(unsigned) final
return a new stream for a ole zone
Definition: STOFFStringStream.cxx:163
bool existsSubStream(const char *name) final
returns true if a substream with name exists
Definition: STOFFStringStream.cxx:158
STOFFStringStream(const unsigned char *data, const unsigned int dataSize)
constructor
Definition: STOFFStringStream.cxx:67
internal class used to create a RVNGInputStream from a unsigned char's pointer
Definition: STOFFStringStream.hxx:36
unsigned subStreamCount() final
returns the number of sub streams.
Definition: STOFFStringStream.cxx:148
internal data of a STOFFStringStream
Definition: STOFFStringStream.cxx:30
librevenge::RVNGInputStream * getSubStreamByName(const char *name) final
return a new stream for a ole zone
Definition: STOFFStringStream.cxx:168
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
void append(const unsigned char *data, const unsigned int dataSize)
append some data at the end of the string
Definition: STOFFStringStream.cxx:77