internal class used to create a RVNGInputStream from a unsigned char's pointer More...
#include <STOFFStringStream.hxx>
Public Member Functions | |
STOFFStringStream (const unsigned char *data, const unsigned int dataSize) | |
constructor | |
~STOFFStringStream () | |
destructor | |
void | append (const unsigned char *data, const unsigned int dataSize) |
append some data at the end of the string | |
const unsigned char * | read (unsigned long numBytes, unsigned long &numBytesRead) |
! reads numbytes data. | |
long | tell () |
returns actual offset position | |
int | seek (long offset, librevenge::RVNG_SEEK_TYPE seekType) |
seeks to a offset position, from actual, beginning or ending position | |
bool | isEnd () |
returns true if we are at the end of the section/file | |
bool | isStructured () |
returns true if the stream is ole | |
unsigned | subStreamCount () |
returns the number of sub streams. | |
const char * | subStreamName (unsigned) |
returns the ith sub streams name | |
bool | existsSubStream (const char *name) |
returns true if a substream with name exists | |
librevenge::RVNGInputStream * | getSubStreamByName (const char *name) |
return a new stream for a ole zone | |
librevenge::RVNGInputStream * | getSubStreamById (unsigned) |
return a new stream for a ole zone | |
Private Member Functions | |
STOFFStringStream (const STOFFStringStream &) | |
STOFFStringStream & | operator= (const STOFFStringStream &) |
Private Attributes | |
STOFFStringStreamPrivate * | m_data |
the string stream data |
internal class used to create a RVNGInputStream from a unsigned char's pointer
STOFFStringStream::STOFFStringStream | ( | const unsigned char * | data, |
const unsigned int | dataSize | ||
) |
constructor
destructor
STOFFStringStream::STOFFStringStream | ( | const STOFFStringStream & | ) | [private] |
void STOFFStringStream::append | ( | const unsigned char * | data, |
const unsigned int | dataSize | ||
) |
append some data at the end of the string
bool STOFFStringStream::existsSubStream | ( | const char * | name | ) |
returns true if a substream with name exists
librevenge::RVNGInputStream * STOFFStringStream::getSubStreamById | ( | unsigned | ) |
return a new stream for a ole zone
librevenge::RVNGInputStream * STOFFStringStream::getSubStreamByName | ( | const char * | name | ) |
return a new stream for a ole zone
bool STOFFStringStream::isEnd | ( | ) |
returns true if we are at the end of the section/file
bool STOFFStringStream::isStructured | ( | ) |
returns true if the stream is ole
STOFFStringStream& STOFFStringStream::operator= | ( | const STOFFStringStream & | ) | [private] |
const unsigned char * STOFFStringStream::read | ( | unsigned long | numBytes, |
unsigned long & | numBytesRead | ||
) |
! reads numbytes data.
int STOFFStringStream::seek | ( | long | offset, |
librevenge::RVNG_SEEK_TYPE | seekType | ||
) |
seeks to a offset position, from actual, beginning or ending position
unsigned STOFFStringStream::subStreamCount | ( | ) |
returns the number of sub streams.
const char * STOFFStringStream::subStreamName | ( | unsigned | ) |
returns the ith sub streams name
long STOFFStringStream::tell | ( | ) |
returns actual offset position