#include <GSFStream.h>
Public Member Functions | |
GSFInputStream (GsfInput *input) | |
virtual | ~GSFInputStream () |
virtual bool | isOLEStream () |
Analyses the content of the input stream to see whether it is an OLE2 storage. | |
virtual WPXInputStream * | getDocumentOLEStream () |
Extracts a PerfectOffice_MAIN stream from an OLE2 storage. | |
virtual const uint8_t * | read (size_t numBytes, size_t &numBytesRead) |
Tries to read a given number of bytes starting from the current position inside the input stream. | |
virtual int | seek (long offset, WPX_SEEK_TYPE seekType) |
Moves to the next location inside the input stream. | |
virtual long | tell () |
Returns the actual position inside the input stream. | |
virtual bool | atEOS () |
Determines whether the current position is at the end of the stream. | |
Private Member Functions | |
GSFInputStream (const GSFInputStream &) | |
GSFInputStream & | operator= (const GSFInputStream &) |
Private Attributes | |
GsfInput * | m_input |
GsfInfile * | m_ole |
GSFInputStream::GSFInputStream | ( | GsfInput * | input | ) |
Referenced by getDocumentOLEStream().
GSFInputStream::~GSFInputStream | ( | ) | [virtual] |
GSFInputStream::GSFInputStream | ( | const GSFInputStream & | ) | [private] |
virtual bool GSFInputStream::atEOS | ( | ) | [inline, virtual] |
Determines whether the current position is at the end of the stream.
Implements WPXInputStream.
WPXInputStream * GSFInputStream::getDocumentOLEStream | ( | ) | [virtual] |
Extracts a PerfectOffice_MAIN
stream from an OLE2 storage.
PerfectOffice_MAIN
stream if it exists.
Should be 0, if the PerfectOffice_MAIN
stream does not exist inside the OLE2 storage or if the input stream is not an OLE2 storage.
Implements WPXInputStream.
bool GSFInputStream::isOLEStream | ( | ) | [virtual] |
Analyses the content of the input stream to see whether it is an OLE2 storage.
Implements WPXInputStream.
GSFInputStream& GSFInputStream::operator= | ( | const GSFInputStream & | ) | [private] |
const uint8_t * GSFInputStream::read | ( | size_t | numBytes, | |
size_t & | numBytesRead | |||
) | [virtual] |
Tries to read a given number of bytes starting from the current position inside the input stream.
numBytes | Number of bytes desired to be read. | |
numBytesRead | Number of bytes that were possible to be read. |
Optionally it could be 0 if the desired number of bytes could not be read.
Implements WPXInputStream.
int GSFInputStream::seek | ( | long | offset, | |
WPX_SEEK_TYPE | seekType | |||
) | [virtual] |
Moves to the next location inside the input stream.
offset | The offset of the location inside the input stream to move to. It is relative either to the current position or to the beginning of the input stream depending on the value of the seekType parameter. | |
seekType | Determines whether the offset is relative to the beginning of the input stream (WPX_SEEK_SET ) or to the current position (WPX_SEEK_CUR ). |
offset
is beyond the end of the input stream or before its beginning). Implements WPXInputStream.
virtual long GSFInputStream::tell | ( | ) | [inline, virtual] |
Returns the actual position inside the input stream.
Implements WPXInputStream.
GsfInput* GSFInputStream::m_input [private] |
Referenced by atEOS(), getDocumentOLEStream(), isOLEStream(), read(), seek(), tell(), and ~GSFInputStream().
GsfInfile* GSFInputStream::m_ole [private] |
Referenced by getDocumentOLEStream(), isOLEStream(), and ~GSFInputStream().