an internal class used to return the OLE/Zip InputStream More...
#include <MWAWInputStream.hxx>
Public Member Functions | |
MWAWStringStream (const unsigned char *data, const unsigned long dataSize) | |
constructor | |
~MWAWStringStream () | |
destructor | |
const unsigned char * | read (unsigned long numBytes, unsigned long &numBytesRead) |
! reads numbytes data, WITHOUT using any endian or section consideration | |
long | tell () |
returns actual offset position | |
int | seek (long offset, WPX_SEEK_TYPE seekType) |
seeks to a offset position, from actual or beginning position | |
bool | atEOS () |
returns true if we are at the end of the section/file | |
bool | isStructuredDocument () |
Analyses the content of the input stream to see whether it is an Zip/OLE2 storage. | |
WPXInputStream * | getSubStream (const char *) |
Tries to extract a stream from a structured document. | |
bool | isOLEStream () |
Analyses the content of the input stream to see whether it is an Zip/OLE2 storage. | |
WPXInputStream * | getDocumentOLEStream (const char *name) |
Tries to extract a stream from a structured document. | |
Private Member Functions | |
MWAWStringStream (const MWAWStringStream &) | |
MWAWStringStream & | operator= (const MWAWStringStream &) |
Private Attributes | |
std::vector< unsigned char > | m_buffer |
a buffer which contains the data | |
volatile long | m_offset |
the actual offset in the buffer |
an internal class used to return the OLE/Zip InputStream
MWAWStringStream::MWAWStringStream | ( | const unsigned char * | data, |
const unsigned long | dataSize | ||
) |
constructor
MWAWStringStream::~MWAWStringStream | ( | ) | [inline] |
destructor
MWAWStringStream::MWAWStringStream | ( | const MWAWStringStream & | ) | [private] |
bool MWAWStringStream::atEOS | ( | ) | [inline] |
returns true if we are at the end of the section/file
WPXInputStream* MWAWStringStream::getDocumentOLEStream | ( | const char * | name | ) | [inline] |
Tries to extract a stream from a structured document.
WPXInputStream* MWAWStringStream::getSubStream | ( | const char * | ) | [inline] |
Tries to extract a stream from a structured document.
Referenced by getDocumentOLEStream().
bool MWAWStringStream::isOLEStream | ( | ) | [inline] |
Analyses the content of the input stream to see whether it is an Zip/OLE2 storage.
bool MWAWStringStream::isStructuredDocument | ( | ) | [inline] |
Analyses the content of the input stream to see whether it is an Zip/OLE2 storage.
Referenced by isOLEStream().
MWAWStringStream& MWAWStringStream::operator= | ( | const MWAWStringStream & | ) | [private] |
const unsigned char * MWAWStringStream::read | ( | unsigned long | numBytes, |
unsigned long & | numBytesRead | ||
) |
! reads numbytes data, WITHOUT using any endian or section consideration
int MWAWStringStream::seek | ( | long | offset, |
WPX_SEEK_TYPE | seekType | ||
) |
seeks to a offset position, from actual or beginning position
long MWAWStringStream::tell | ( | ) | [inline] |
returns actual offset position
std::vector<unsigned char> MWAWStringStream::m_buffer [private] |
a buffer which contains the data
Referenced by atEOS(), MWAWStringStream(), read(), and seek().
volatile long MWAWStringStream::m_offset [private] |