#include <RVNGStreamImplementation.h>
Public Member Functions | |
RVNGFileStream (const char *filename) | |
~RVNGFileStream () | |
const unsigned char * | read (unsigned long numBytes, unsigned long &numBytesRead) |
Tries to read a given number of bytes starting from the current position inside the input stream. | |
long | tell () |
Returns the actual position inside the input stream. | |
int | seek (long offset, RVNG_SEEK_TYPE seekType) |
Moves to the next location inside the input stream. | |
bool | isEnd () |
Determines whether the current position is at the end of the stream. | |
bool | isStructured () |
Analyses the content of the input stream to see whether it is an OLE2 storage. | |
unsigned | subStreamCount () |
const char * | subStreamName (unsigned id) |
bool | existsSubStream (const char *name) |
RVNGInputStream * | getSubStreamById (unsigned id) |
RVNGInputStream * | getSubStreamByName (const char *name) |
Extracts a named stream from an OLE2 storage. | |
![]() | |
RVNGInputStream () | |
virtual | ~RVNGInputStream () |
virtual bool | isStructured ()=0 |
Analyses the content of the input stream to see whether it is an OLE2 storage. | |
virtual unsigned | subStreamCount ()=0 |
virtual const char * | subStreamName (unsigned id)=0 |
virtual bool | existsSubStream (const char *name)=0 |
virtual RVNGInputStream * | getSubStreamByName (const char *name)=0 |
Extracts a named stream from an OLE2 storage. | |
virtual RVNGInputStream * | getSubStreamById (unsigned id)=0 |
virtual const unsigned char * | read (unsigned long numBytes, unsigned long &numBytesRead)=0 |
Tries to read a given number of bytes starting from the current position inside the input stream. | |
virtual int | seek (long offset, RVNG_SEEK_TYPE seekType)=0 |
Moves to the next location inside the input stream. | |
virtual long | tell ()=0 |
Returns the actual position inside the input stream. | |
virtual bool | isEnd ()=0 |
Determines whether the current position is at the end of the stream. | |
Private Member Functions | |
RVNGFileStream (const RVNGFileStream &) | |
RVNGFileStream & | operator= (const RVNGFileStream &) |
Private Attributes | |
RVNGFileStreamPrivate * | d |
|
explicit |
librevenge::RVNGFileStream::~RVNGFileStream | ( | ) |
|
private |
|
virtual |
Implements librevenge::RVNGInputStream.
|
virtual |
Implements librevenge::RVNGInputStream.
|
virtual |
Extracts a named
stream from an OLE2 storage.
named
stream if it exists. named
stream does not exist inside the OLE2 storage or if the input stream is not an OLE2 storage. Implements librevenge::RVNGInputStream.
Referenced by getSubStreamById().
|
virtual |
Determines whether the current position is at the end of the stream.
Implements librevenge::RVNGInputStream.
|
virtual |
Analyses the content of the input stream to see whether it is an OLE2 storage.
Implements librevenge::RVNGInputStream.
Referenced by existsSubStream(), getSubStreamByName(), subStreamCount(), and subStreamName().
|
private |
|
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. |
Implements librevenge::RVNGInputStream.
|
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 (RVNG_SEEK_SET ) or to the current position (RVNG_SEEK_CUR ). |
offset
is beyond the end of the input stream or before its beginning). Implements librevenge::RVNGInputStream.
Referenced by getSubStreamByName(), and isStructured().
|
virtual |
Implements librevenge::RVNGInputStream.
|
virtual |
Implements librevenge::RVNGInputStream.
Referenced by getSubStreamById().
|
virtual |
Returns the actual position inside the input stream.
Implements librevenge::RVNGInputStream.
|
private |
Referenced by existsSubStream(), getSubStreamByName(), isEnd(), isStructured(), read(), RVNGFileStream(), seek(), subStreamCount(), subStreamName(), tell(), and ~RVNGFileStream().