Go to the documentation of this file.
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;
~WPSStringStream() final
destructor
Definition: WPSStringStream.cpp:81
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
long tell() final
returns actual offset position
Definition: WPSStringStream.cpp:116
librevenge::RVNGInputStream * getSubStreamByName(const char *name) final
return a new stream for a ole zone
Definition: WPSStringStream.cpp:178
long m_offset
the stream offset
Definition: WPSStringStream.cpp:46
unsigned subStreamCount() final
returns the number of sub streams.
Definition: WPSStringStream.cpp:158
const unsigned char * read(unsigned long numBytes, unsigned long &numBytesRead) final
! reads numbytes data.
Definition: WPSStringStream.cpp:90
internal data of a WPSStringStream
Definition: WPSStringStream.cpp:34
~WPSStringStreamPrivate()
destructor
Definition: WPSStringStream.cpp:63
std::vector< unsigned char > m_buffer
the stream buffer
Definition: WPSStringStream.cpp:44
librevenge::RVNGInputStream * getSubStreamById(unsigned) final
return a new stream for a ole zone
Definition: WPSStringStream.cpp:173
internal class used to create a RVNGInputStream from a unsigned char's pointer
Definition: WPSStringStream.h:41
const char * subStreamName(unsigned) final
returns the ith sub streams name
Definition: WPSStringStream.cpp:163
bool isEnd() final
returns true if we are at the end of the section/file
Definition: WPSStringStream.cpp:145
WPSStringStreamPrivate & operator=(const WPSStringStreamPrivate &)=delete
WPSStringStream & operator=(const WPSStringStream &)=delete
WPSStringStreamPrivate(const unsigned char *data, unsigned dataSize)
constructor
Definition: WPSStringStream.cpp:52
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
std::unique_ptr< WPSStringStreamPrivate > m_data
the string stream data
Definition: WPSStringStream.h:92
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
Definition: WPSOLEStream.h:33
void append(const unsigned char *data, unsigned dataSize)
append some data at the end of the actual stream
Definition: WPSStringStream.cpp:67
Generated on Fri Mar 25 2022 13:57:31 for libwps by
doxygen 1.8.17