22 #ifndef STOFF_STRING_STREAM_HXX 23 #define STOFF_STRING_STREAM_HXX 25 #include <librevenge-stream/librevenge-stream.h> 43 void append(
const unsigned char *data,
const unsigned int dataSize);
48 const unsigned char *
read(
unsigned long numBytes,
unsigned long &numBytesRead);
54 int seek(
long offset, librevenge::RVNG_SEEK_TYPE seekType);
bool isStructured()
returns true if the stream is ole
Definition: STOFFStringStream.cxx:144
~STOFFStringStream()
destructor
Definition: STOFFStringStream.cxx:73
librevenge::RVNGInputStream * getSubStreamByName(const char *name)
return a new stream for a ole zone
Definition: STOFFStringStream.cxx:169
STOFFStringStream & operator=(const STOFFStringStream &)
int seek(long offset, librevenge::RVNG_SEEK_TYPE seekType)
seeks to a offset position, from actual, beginning or ending position
Definition: STOFFStringStream.cxx:114
STOFFStringStreamPrivate * m_data
the string stream data
Definition: STOFFStringStream.hxx:85
bool isEnd()
returns true if we are at the end of the section/file
Definition: STOFFStringStream.cxx:136
STOFFStringStream(const unsigned char *data, const unsigned int dataSize)
constructor
Definition: STOFFStringStream.cxx:67
librevenge::RVNGInputStream * getSubStreamById(unsigned)
return a new stream for a ole zone
Definition: STOFFStringStream.cxx:164
internal class used to create a RVNGInputStream from a unsigned char's pointer
Definition: STOFFStringStream.hxx:34
internal data of a STOFFStringStream
Definition: STOFFStringStream.cxx:30
long tell()
returns actual offset position
Definition: STOFFStringStream.cxx:109
unsigned subStreamCount()
returns the number of sub streams.
Definition: STOFFStringStream.cxx:149
const char * subStreamName(unsigned)
returns the ith sub streams name
Definition: STOFFStringStream.cxx:154
bool existsSubStream(const char *name)
returns true if a substream with name exists
Definition: STOFFStringStream.cxx:159
const unsigned char * read(unsigned long numBytes, unsigned long &numBytesRead)
! reads numbytes data.
Definition: STOFFStringStream.cxx:83
void append(const unsigned char *data, const unsigned int dataSize)
append some data at the end of the string
Definition: STOFFStringStream.cxx:78