34 #ifndef MWAW_INPUT_STREAM_H
35 #define MWAW_INPUT_STREAM_H
40 #include <libwpd/libwpd.h>
41 #include <libwpd-stream/libwpd-stream.h>
78 shared_ptr<WPXInputStream>
input() {
82 static shared_ptr<MWAWInputStream>
get(WPXBinaryData
const &data,
bool inverted);
100 int seek(
long offset, WPX_SEEK_TYPE seekType);
109 if (pos < 0)
return false;
142 bool readDouble(
double &res,
bool &isNotANumber);
147 const uint8_t *
read(
size_t numBytes,
unsigned long &numBytesRead);
151 static unsigned long readULong(WPXInputStream *stream,
int num,
unsigned long a,
bool inverseRead);
205 static uint8_t
readU8(WPXInputStream *stream);
218 shared_ptr<WPXInputStream> &dataInput,
219 shared_ptr<WPXInputStream> &rsrcInput)
const;
261 const unsigned char *
read(
unsigned long numBytes,
unsigned long &numBytesRead);
270 int seek(
long offset, WPX_SEEK_TYPE seekType);
int seek(long offset, WPX_SEEK_TYPE seekType)
seeks to a offset position, from actual or beginning position
Definition: MWAWInputStream.cxx:730
bool isStructuredDocument()
Analyses the content of the input stream to see whether it is an Zip/OLE2 storage.
Definition: MWAWInputStream.hxx:280
class used to read/parse an OLE file
Definition: MWAWOLEStream.hxx:48
const unsigned char * read(unsigned long numBytes, unsigned long &numBytesRead)
! reads numbytes data, WITHOUT using any endian or section consideration
Definition: MWAWInputStream.cxx:750
WPXInputStream * getDocumentOLEStream(const char *name)
Tries to extract a stream from a structured document.
Definition: MWAWInputStream.hxx:302
std::vector< unsigned char > m_buffer
a buffer which contains the data
Definition: MWAWInputStream.hxx:308
MWAWStringStream & operator=(const MWAWStringStream &)
WPXInputStream * getSubStream(const char *)
Tries to extract a stream from a structured document.
Definition: MWAWInputStream.hxx:287
long tell()
returns actual offset position
Definition: MWAWInputStream.hxx:263
bool atEOS()
returns true if we are at the end of the section/file
Definition: MWAWInputStream.hxx:272
an internal class used to return the OLE/Zip InputStream
Definition: MWAWInputStream.hxx:250
bool isOLEStream()
Analyses the content of the input stream to see whether it is an Zip/OLE2 storage.
Definition: MWAWInputStream.hxx:295
MWAWStringStream(const unsigned char *data, const unsigned long dataSize)
constructor
Definition: MWAWInputStream.cxx:724
volatile long m_offset
the actual offset in the buffer
Definition: MWAWInputStream.hxx:310
~MWAWStringStream()
destructor
Definition: MWAWInputStream.hxx:256