PoDoFo  1.0.0-dev
Protected Member Functions | Static Protected Member Functions | List of all members
PoDoFo::StreamDevice Class Reference

This class provides an output device which operates either on a file or on a buffer in memory. More...

#include <StreamDevice.h>

Inheritance diagram for PoDoFo::StreamDevice:
PoDoFo::InputStreamDevice PoDoFo::InputStream PoDoFo::NullStreamDevice

Protected Member Functions

 StreamDevice (DeviceAccess access)
 
- Protected Member Functions inherited from PoDoFo::InputStreamDevice
 InputStreamDevice (bool init)
 
virtual bool peek (char &ch) const =0
 Peek at next char in stream. More...
 
void checkRead () const override
 Optional checks before reading By default does nothing.
 
- Protected Member Functions inherited from PoDoFo::InputStream
virtual size_t readBuffer (char *buffer, size_t size, bool &eof)=0
 Read a buffer from the stream /param eof true if the stream reached eof during read /returns number of read bytes.
 
virtual bool readChar (char &ch)
 Read the next char in stream. More...
 

Static Protected Member Functions

static size_t SeekPosition (size_t curpos, size_t devlen, ssize_t offset, SeekDirection direction)
 
- Static Protected Member Functions inherited from PoDoFo::InputStream
static size_t ReadBuffer (InputStream &stream, char *buffer, size_t size, bool &eof)
 
static bool ReadChar (InputStream &stream, char &ch)
 

Additional Inherited Members

- Public Member Functions inherited from PoDoFo::InputStreamDevice
bool Peek (char &ch) const
 Peek at next char in stream. More...
 
- Public Member Functions inherited from PoDoFo::InputStream
void Read (char *buffer, size_t size)
 Read data from the device. More...
 
size_t Read (char *buffer, size_t size, bool &eof)
 Read data from the device. More...
 
char ReadChar ()
 Get next char from stream. More...
 
bool Read (char &ch)
 Get next char from stream. More...
 
void CopyTo (OutputStream &stream)
 Copy this stream to another. More...
 
void CopyTo (OutputStream &stream, size_t size)
 Copy this stream to another. More...
 

Detailed Description

This class provides an output device which operates either on a file or on a buffer in memory.

Additionally it can count the bytes written to the device.

This class is suitable for inheritance to provide output devices of your own. Just override the required virtual methods.


The documentation for this class was generated from the following files: