Go to the documentation of this file.
20 #ifndef RVNGSTREAMIMPLEMENTATION_H
21 #define RVNGSTREAMIMPLEMENTATION_H
30 class RVNGFileStreamPrivate;
38 const unsigned char *read(
unsigned long numBytes,
unsigned long &numBytesRead);
44 unsigned subStreamCount();
45 const char *subStreamName(
unsigned id);
46 bool existsSubStream(
const char *name);
64 const unsigned char *read(
unsigned long numBytes,
unsigned long &numBytesRead);
70 unsigned subStreamCount();
71 const char *subStreamName(
unsigned);
72 bool existsSubStream(
const char *name);
84 #endif // RVNGSTREAMIMPLEMENTATION_H
bool isStructured()
Analyses the content of the input stream to see whether it is an OLE2 storage.
Definition: RVNGStreamImplementation.cpp:274
Definition: RVNGOLEStream.h:92
RVNGStringStreamPrivate & operator=(const RVNGStringStreamPrivate &)
@ RVNG_SEEK_END
Definition: RVNGStream.h:30
bool isEnd()
Determines whether the current position is at the end of the stream.
Definition: RVNGStreamImplementation.cpp:267
RVNGStreamType streamType
Definition: RVNGStreamImplementation.cpp:68
RVNGFileStreamPrivate()
Definition: RVNGStreamImplementation.cpp:75
bool isStructured()
Checks whether the storage is OLE2 storage.
Definition: RVNGOLEStream.cpp:1762
RVNGFileStream(const RVNGFileStream &)
#define BUFFER_MAX
Definition: RVNGStreamImplementation.cpp:146
~RVNGStringStream()
Definition: RVNGStreamImplementation.cpp:388
RVNGStringStreamPrivate(const unsigned char *data, unsigned dataSize)
Definition: RVNGStreamImplementation.cpp:94
unsigned subStreamCount()
Definition: RVNGStreamImplementation.cpp:310
long tell()
Returns the actual position inside the input stream.
Definition: RVNGStreamImplementation.cpp:419
~RVNGFileStream()
Definition: RVNGStreamImplementation.cpp:141
const char * subStreamName(unsigned id)
Definition: RVNGStreamImplementation.cpp:316
RVNGStringStreamPrivate * d
Definition: RVNGStreamImplementation.h:77
RVNGStreamType streamType
Definition: RVNGStreamImplementation.cpp:54
std::vector< std::string > streamNameList
Definition: RVNGStreamImplementation.cpp:55
static RVNGInputStream * getSubstream(RVNGInputStream *input, const char *name)
Definition: RVNGZipStream.cpp:428
static std::vector< std::string > getSubStreamNamesList(RVNGInputStream *input)
Definition: RVNGZipStream.cpp:423
@ Ok
Definition: RVNGOLEStream.h:55
RVNGFileStreamPrivate(const RVNGFileStreamPrivate &)
#define S_ISREG(x)
Definition: RVNGStreamImplementation.cpp:36
RVNGInputStream * getSubStreamById(unsigned)
Definition: RVNGStreamImplementation.cpp:519
volatile long offset
Definition: RVNGStreamImplementation.cpp:67
@ ZIP
Definition: RVNGStreamImplementation.cpp:42
RVNGStringStreamPrivate(const RVNGStringStreamPrivate &)
RVNGStringStream(const unsigned char *data, const unsigned int dataSize)
Definition: RVNGStreamImplementation.cpp:382
@ FLAT
Definition: RVNGStreamImplementation.cpp:42
bool isEnd()
Determines whether the current position is at the end of the stream.
Definition: RVNGStreamImplementation.cpp:447
unsigned long readBufferPos
Definition: RVNGStreamImplementation.cpp:53
RVNGStringStream(const RVNGStringStream &)
RVNGFileStreamPrivate & operator=(const RVNGFileStreamPrivate &)
std::vector< std::string > streamNameList
Definition: RVNGStreamImplementation.cpp:69
long tell()
Returns the actual position inside the input stream.
Definition: RVNGStreamImplementation.cpp:221
unsigned long readBufferLength
Definition: RVNGStreamImplementation.cpp:52
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.
Definition: RVNGStreamImplementation.cpp:393
RVNGStreamType
Definition: RVNGStreamImplementation.cpp:42
@ RVNG_SEEK_CUR
Definition: RVNGStream.h:28
std::string filename
Definition: RVNGZipStream.cpp:53
@ RVNG_SEEK_SET
Definition: RVNGStream.h:29
bool existsSubStream(const char *name)
Definition: RVNGStreamImplementation.cpp:323
Definition: RVNGStreamImplementation.h:33
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.
Definition: RVNGStreamImplementation.cpp:148
@ UNKNOWN
Definition: RVNGStreamImplementation.cpp:42
Definition: RVNGStreamImplementation.h:59
unsigned long size()
Returns the stream size.
Definition: RVNGOLEStream.cpp:1795
unsigned char * readBuffer
Definition: RVNGStreamImplementation.cpp:51
std::vector< unsigned char > buffer
Definition: RVNGStreamImplementation.cpp:66
RVNGInputStream * getSubStreamById(unsigned id)
Definition: RVNGStreamImplementation.cpp:341
unsigned long read(unsigned char *data, unsigned long maxlen)
Reads a block of data.
Definition: RVNGOLEStream.cpp:1800
Result result()
Returns the error code of last operation.
Definition: RVNGOLEStream.cpp:1757
unsigned long streamSize
Definition: RVNGStreamImplementation.cpp:50
~RVNGStringStreamPrivate()
Definition: RVNGStreamImplementation.cpp:105
RVNGStringStream & operator=(const RVNGStringStream &)
RVNGInputStream * getSubStreamByName(const char *name)
Extracts a named stream from an OLE2 storage.
Definition: RVNGStreamImplementation.cpp:346
const char * subStreamName(unsigned)
Definition: RVNGStreamImplementation.cpp:494
#define REVENGE_STREAM_API
Definition: librevenge-stream-api.h:34
@ OLE2
Definition: RVNGStreamImplementation.cpp:42
Definition: RVNGStreamImplementation.cpp:62
RVNGFileStream & operator=(const RVNGFileStream &)
RVNGInputStream * getSubStreamByName(const char *name)
Extracts a named stream from an OLE2 storage.
Definition: RVNGStreamImplementation.cpp:524
unsigned offset
Definition: RVNGZipStream.cpp:79
static bool isZipFile(RVNGInputStream *input)
Definition: RVNGZipStream.cpp:400
RVNG_SEEK_TYPE
Definition: RVNGStream.h:27
bool existsSubStream(const char *name)
Definition: RVNGStreamImplementation.cpp:501
bool isStructured()
Analyses the content of the input stream to see whether it is an OLE2 storage.
Definition: RVNGStreamImplementation.cpp:455
Definition: RVNGBinaryData.cpp:40
FILE * file
Definition: RVNGStreamImplementation.cpp:49
RVNGFileStream(const char *filename)
Definition: RVNGStreamImplementation.cpp:109
~RVNGFileStreamPrivate()
Definition: RVNGStreamImplementation.cpp:86
RVNGFileStreamPrivate * d
Definition: RVNGStreamImplementation.h:51
Definition: RVNGStreamImplementation.cpp:45
int seek(long offset, RVNG_SEEK_TYPE seekType)
Moves to the next location inside the input stream.
Definition: RVNGStreamImplementation.cpp:228
unsigned subStreamCount()
Definition: RVNGStreamImplementation.cpp:488
std::vector< std::string > getSubStreamNamesList()
Returns the list of substream name.
Definition: RVNGOLEStream.cpp:1767
int seek(long offset, RVNG_SEEK_TYPE seekType)
Moves to the next location inside the input stream.
Definition: RVNGStreamImplementation.cpp:424
Definition: RVNGOLEStream.h:49
Generated for librevenge by
doxygen 1.8.20