#include <RVNGStreamImplementation.h>
◆ RVNGFileStream() [1/2]
librevenge::RVNGFileStream::RVNGFileStream |
( |
const char * | filename | ) |
|
|
explicit |
◆ ~RVNGFileStream()
librevenge::RVNGFileStream::~RVNGFileStream |
( |
| ) |
|
◆ RVNGFileStream() [2/2]
◆ existsSubStream()
bool librevenge::RVNGFileStream::existsSubStream |
( |
const char * | name | ) |
|
|
virtual |
◆ getSubStreamById()
RVNGInputStream * librevenge::RVNGFileStream::getSubStreamById |
( |
unsigned | id | ) |
|
|
virtual |
◆ getSubStreamByName()
RVNGInputStream * librevenge::RVNGFileStream::getSubStreamByName |
( |
const char * | name | ) |
|
|
virtual |
Extracts a named
stream from an OLE2 storage.
- Returns
- Should be a pointer to RVNGInputStream constructed from the
named
stream if it exists.
-
Should be 0, if the
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().
◆ isEnd()
bool librevenge::RVNGFileStream::isEnd |
( |
| ) |
|
|
virtual |
Determines whether the current position is at the end of the stream.
- Returns
- A boolean value that should be true if the next location to be read in the input stream is beyond its end. In all other cases, it should be false.
Implements librevenge::RVNGInputStream.
◆ isStructured()
bool librevenge::RVNGFileStream::isStructured |
( |
| ) |
|
|
virtual |
◆ operator=()
◆ read()
const unsigned char * librevenge::RVNGFileStream::read |
( |
unsigned long | numBytes, |
|
|
unsigned long & | numBytesRead ) |
|
virtual |
Tries to read a given number of bytes starting from the current position inside the input stream.
- Parameters
-
numBytes | Number of bytes desired to be read. |
numBytesRead | Number of bytes that were possible to be read. |
- Returns
- Should be a pointer to an array of numBytesRead bytes (unsigned char[numBytesRead]).
-
Optionally it could be 0 if the desired number of bytes could not be read.
Implements librevenge::RVNGInputStream.
◆ seek()
int librevenge::RVNGFileStream::seek |
( |
long | offset, |
|
|
RVNG_SEEK_TYPE | seekType ) |
|
virtual |
Moves to the next location inside the input stream.
- Parameters
-
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 ). |
- Returns
- An integer value that should be 0 (zero) if the seek was successful and any other value if it failed (i.e. the requested
offset
is beyond the end of the input stream or before its beginning).
Implements librevenge::RVNGInputStream.
Referenced by getSubStreamByName(), and isStructured().
◆ subStreamCount()
unsigned librevenge::RVNGFileStream::subStreamCount |
( |
| ) |
|
|
virtual |
◆ subStreamName()
const char * librevenge::RVNGFileStream::subStreamName |
( |
unsigned | id | ) |
|
|
virtual |
◆ tell()
long librevenge::RVNGFileStream::tell |
( |
| ) |
|
|
virtual |
Returns the actual position inside the input stream.
- Returns
- A long integer value that should correspond to the position of the next location to be read in the input stream.
Implements librevenge::RVNGInputStream.
Referenced by isEnd(), read(), and seek().
Referenced by existsSubStream(), getSubStreamByName(), isEnd(), isStructured(), read(), RVNGFileStream(), seek(), subStreamCount(), subStreamName(), tell(), and ~RVNGFileStream().
The documentation for this class was generated from the following files: