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:273
Definition: RVNGOLEStream.h:91
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:266
RVNGStreamType streamType
Definition: RVNGStreamImplementation.cpp:67
RVNGFileStreamPrivate()
Definition: RVNGStreamImplementation.cpp:74
bool isStructured()
Checks whether the storage is OLE2 storage.
Definition: RVNGOLEStream.cpp:1762
RVNGFileStream(const RVNGFileStream &)
#define BUFFER_MAX
Definition: RVNGStreamImplementation.cpp:145
~RVNGStringStream()
Definition: RVNGStreamImplementation.cpp:387
RVNGStringStreamPrivate(const unsigned char *data, unsigned dataSize)
Definition: RVNGStreamImplementation.cpp:93
unsigned subStreamCount()
Definition: RVNGStreamImplementation.cpp:309
long tell()
Returns the actual position inside the input stream.
Definition: RVNGStreamImplementation.cpp:418
~RVNGFileStream()
Definition: RVNGStreamImplementation.cpp:139
const char * subStreamName(unsigned id)
Definition: RVNGStreamImplementation.cpp:315
RVNGStringStreamPrivate * d
Definition: RVNGStreamImplementation.h:77
RVNGStreamType streamType
Definition: RVNGStreamImplementation.cpp:53
std::vector< std::string > streamNameList
Definition: RVNGStreamImplementation.cpp:54
static RVNGInputStream * getSubstream(RVNGInputStream *input, const char *name)
Definition: RVNGZipStream.cpp:426
static std::vector< std::string > getSubStreamNamesList(RVNGInputStream *input)
Definition: RVNGZipStream.cpp:421
@ Ok
Definition: RVNGOLEStream.h:54
RVNGFileStreamPrivate(const RVNGFileStreamPrivate &)
#define S_ISREG(x)
Definition: RVNGStreamImplementation.cpp:35
RVNGInputStream * getSubStreamById(unsigned)
Definition: RVNGStreamImplementation.cpp:518
volatile long offset
Definition: RVNGStreamImplementation.cpp:66
@ ZIP
Definition: RVNGStreamImplementation.cpp:41
RVNGStringStreamPrivate(const RVNGStringStreamPrivate &)
RVNGStringStream(const unsigned char *data, const unsigned int dataSize)
Definition: RVNGStreamImplementation.cpp:381
@ FLAT
Definition: RVNGStreamImplementation.cpp:41
bool isEnd()
Determines whether the current position is at the end of the stream.
Definition: RVNGStreamImplementation.cpp:446
unsigned long readBufferPos
Definition: RVNGStreamImplementation.cpp:52
RVNGStringStream(const RVNGStringStream &)
RVNGFileStreamPrivate & operator=(const RVNGFileStreamPrivate &)
std::vector< std::string > streamNameList
Definition: RVNGStreamImplementation.cpp:68
long tell()
Returns the actual position inside the input stream.
Definition: RVNGStreamImplementation.cpp:220
unsigned long readBufferLength
Definition: RVNGStreamImplementation.cpp:51
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:392
RVNGStreamType
Definition: RVNGStreamImplementation.cpp:41
@ RVNG_SEEK_CUR
Definition: RVNGStream.h:28
std::string filename
Definition: RVNGZipStream.cpp:51
@ RVNG_SEEK_SET
Definition: RVNGStream.h:29
bool existsSubStream(const char *name)
Definition: RVNGStreamImplementation.cpp:322
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:147
@ UNKNOWN
Definition: RVNGStreamImplementation.cpp:41
Definition: RVNGStreamImplementation.h:59
unsigned long size()
Returns the stream size.
Definition: RVNGOLEStream.cpp:1797
unsigned char * readBuffer
Definition: RVNGStreamImplementation.cpp:50
std::vector< unsigned char > buffer
Definition: RVNGStreamImplementation.cpp:65
RVNGInputStream * getSubStreamById(unsigned id)
Definition: RVNGStreamImplementation.cpp:340
unsigned long read(unsigned char *data, unsigned long maxlen)
Reads a block of data.
Definition: RVNGOLEStream.cpp:1802
Result result()
Returns the error code of last operation.
Definition: RVNGOLEStream.cpp:1757
unsigned long streamSize
Definition: RVNGStreamImplementation.cpp:49
~RVNGStringStreamPrivate()
Definition: RVNGStreamImplementation.cpp:103
RVNGStringStream & operator=(const RVNGStringStream &)
RVNGInputStream * getSubStreamByName(const char *name)
Extracts a named stream from an OLE2 storage.
Definition: RVNGStreamImplementation.cpp:345
const char * subStreamName(unsigned)
Definition: RVNGStreamImplementation.cpp:493
#define REVENGE_STREAM_API
Definition: librevenge-stream-api.h:34
@ OLE2
Definition: RVNGStreamImplementation.cpp:41
Definition: RVNGStreamImplementation.cpp:61
RVNGFileStream & operator=(const RVNGFileStream &)
RVNGInputStream * getSubStreamByName(const char *name)
Extracts a named stream from an OLE2 storage.
Definition: RVNGStreamImplementation.cpp:523
unsigned offset
Definition: RVNGZipStream.cpp:77
static bool isZipFile(RVNGInputStream *input)
Definition: RVNGZipStream.cpp:398
RVNG_SEEK_TYPE
Definition: RVNGStream.h:27
bool existsSubStream(const char *name)
Definition: RVNGStreamImplementation.cpp:500
bool isStructured()
Analyses the content of the input stream to see whether it is an OLE2 storage.
Definition: RVNGStreamImplementation.cpp:454
Definition: RVNGBinaryData.cpp:39
FILE * file
Definition: RVNGStreamImplementation.cpp:48
RVNGFileStream(const char *filename)
Definition: RVNGStreamImplementation.cpp:107
~RVNGFileStreamPrivate()
Definition: RVNGStreamImplementation.cpp:85
RVNGFileStreamPrivate * d
Definition: RVNGStreamImplementation.h:51
Definition: RVNGStreamImplementation.cpp:44
int seek(long offset, RVNG_SEEK_TYPE seekType)
Moves to the next location inside the input stream.
Definition: RVNGStreamImplementation.cpp:227
unsigned subStreamCount()
Definition: RVNGStreamImplementation.cpp:487
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:423
Definition: RVNGOLEStream.h:48
Generated for librevenge by
doxygen 1.8.18