STOFFStringStream Class Referencefinal

internal class used to create a RVNGInputStream from a unsigned char's pointer More...

#include <STOFFStringStream.hxx>

Inheritance diagram for STOFFStringStream:

Public Member Functions

 STOFFStringStream (const unsigned char *data, const unsigned int dataSize)
 constructor More...
 
 ~STOFFStringStream () final
 destructor More...
 
void append (const unsigned char *data, const unsigned int dataSize)
 append some data at the end of the string More...
 
const unsigned char * read (unsigned long numBytes, unsigned long &numBytesRead) final
 ! reads numbytes data. More...
 
long tell () final
 returns actual offset position More...
 
int seek (long offset, librevenge::RVNG_SEEK_TYPE seekType) final
 seeks to a offset position, from actual, beginning or ending position More...
 
bool isEnd () final
 returns true if we are at the end of the section/file More...
 
bool isStructured () final
 returns true if the stream is ole More...
 
unsigned subStreamCount () final
 returns the number of sub streams. More...
 
const char * subStreamName (unsigned) final
 returns the ith sub streams name More...
 
bool existsSubStream (const char *name) final
 returns true if a substream with name exists More...
 
librevenge::RVNGInputStream * getSubStreamByName (const char *name) final
 return a new stream for a ole zone More...
 
librevenge::RVNGInputStream * getSubStreamById (unsigned) final
 return a new stream for a ole zone More...
 

Private Member Functions

 STOFFStringStream (const STOFFStringStream &)
 
STOFFStringStreamoperator= (const STOFFStringStream &)
 

Private Attributes

std::unique_ptr
< STOFFStringStreamPrivate
m_data
 the string stream data More...
 

Detailed Description

internal class used to create a RVNGInputStream from a unsigned char's pointer

Note
this class (highly inspired from librevenge) does not implement the isStructured's protocol, ie. it only returns false.

Constructor & Destructor Documentation

STOFFStringStream::STOFFStringStream ( const unsigned char *  data,
const unsigned int  dataSize 
)

constructor

STOFFStringStream::~STOFFStringStream ( )
final

destructor

STOFFStringStream::STOFFStringStream ( const STOFFStringStream )
private

Member Function Documentation

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)
final

returns true if a substream with name exists

See also
returns always false
librevenge::RVNGInputStream * STOFFStringStream::getSubStreamById ( unsigned  )
final

return a new stream for a ole zone

See also
returns always 0
librevenge::RVNGInputStream * STOFFStringStream::getSubStreamByName ( const char *  name)
final

return a new stream for a ole zone

See also
returns always 0
bool STOFFStringStream::isEnd ( )
final

returns true if we are at the end of the section/file

bool STOFFStringStream::isStructured ( )
final

returns true if the stream is ole

See also
returns always false
STOFFStringStream& STOFFStringStream::operator= ( const STOFFStringStream )
private
const unsigned char * STOFFStringStream::read ( unsigned long  numBytes,
unsigned long &  numBytesRead 
)
final

! reads numbytes data.

Returns
a pointer to the read elements
int STOFFStringStream::seek ( long  offset,
librevenge::RVNG_SEEK_TYPE  seekType 
)
final

seeks to a offset position, from actual, beginning or ending position

Returns
0 if ok
unsigned STOFFStringStream::subStreamCount ( )
final

returns the number of sub streams.

See also
returns always 0
const char * STOFFStringStream::subStreamName ( unsigned  )
final

returns the ith sub streams name

See also
returns always 0
long STOFFStringStream::tell ( )
final

returns actual offset position

Member Data Documentation

std::unique_ptr<STOFFStringStreamPrivate> STOFFStringStream::m_data
private

the string stream data

Referenced by append(), isEnd(), read(), seek(), and tell().


The documentation for this class was generated from the following files:

Generated on Thu May 7 2020 19:28:01 for libstaroffice by doxygen 1.8.8