27 #ifndef WPS_STRING_STREAM_H 28 #define WPS_STRING_STREAM_H 32 #include <librevenge-stream/librevenge-stream.h> 45 WPSStringStream(
const unsigned char *data,
const unsigned int dataSize);
50 void append(
const unsigned char *data,
const unsigned int dataSize);
55 const unsigned char *
read(
unsigned long numBytes,
unsigned long &numBytesRead)
final;
61 int seek(
long offset, librevenge::RVNG_SEEK_TYPE seekType)
final;
92 std::unique_ptr<WPSStringStreamPrivate>
m_data;
long tell() final
returns actual offset position
Definition: WPSStringStream.cpp:116
const char * subStreamName(unsigned) final
returns the ith sub streams name
Definition: WPSStringStream.cpp:163
~WPSStringStream() final
destructor
Definition: WPSStringStream.cpp:81
WPSStringStream & operator=(const WPSStringStream &)=delete
librevenge::RVNGInputStream * getSubStreamByName(const char *name) final
return a new stream for a ole zone
Definition: WPSStringStream.cpp:178
unsigned subStreamCount() final
returns the number of sub streams.
Definition: WPSStringStream.cpp:158
internal class used to create a RVNGInputStream from a unsigned char's pointer
Definition: WPSStringStream.h:41
bool isEnd() final
returns true if we are at the end of the section/file
Definition: WPSStringStream.cpp:145
const unsigned char * read(unsigned long numBytes, unsigned long &numBytesRead) final
! reads numbytes data.
Definition: WPSStringStream.cpp:90
void append(const unsigned char *data, const unsigned int dataSize)
append some data at the end of the string
Definition: WPSStringStream.cpp:85
WPSStringStream(const unsigned char *data, const unsigned int dataSize)
constructor
Definition: WPSStringStream.cpp:75
bool existsSubStream(const char *name) final
returns true if a substream with name exists
Definition: WPSStringStream.cpp:168
bool isStructured() final
returns true if the stream is ole
Definition: WPSStringStream.cpp:153
std::unique_ptr< WPSStringStreamPrivate > m_data
the string stream data
Definition: WPSStringStream.h:92
int seek(long offset, librevenge::RVNG_SEEK_TYPE seekType) final
seeks to a offset position, from actual, beginning or ending position
Definition: WPSStringStream.cpp:121
internal data of a WPSStringStream
Definition: WPSStringStream.cpp:34
librevenge::RVNGInputStream * getSubStreamById(unsigned) final
return a new stream for a ole zone
Definition: WPSStringStream.cpp:173