PoDoFo 0.9.20
PoDoFo::InputStreamDevice Class Referenceabstract

#include <InputDevice.h>

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

Public Member Functions

bool Peek (char &ch) const
 
- Public Member Functions inherited from PoDoFo::InputStream
void Read (char *buffer, size_t size)
 
size_t Read (char *buffer, size_t size, bool &eof)
 
char ReadChar ()
 
bool Read (char &ch)
 

Protected Member Functions

virtual bool peek (char &ch) const =0
 
void checkRead () const override
 
- Protected Member Functions inherited from PoDoFo::InputStream
virtual size_t readBuffer (char *buffer, size_t size, bool &eof)=0
 
virtual bool readChar (char &ch)
 

Detailed Description

This class represents an input device It optionally supports peeking

Member Function Documentation

◆ checkRead()

void InputStreamDevice::checkRead ( ) const
overrideprotectedvirtual

Optional checks before reading By default does nothing

Reimplemented from PoDoFo::InputStream.

◆ Peek()

bool InputStreamDevice::Peek ( char & ch) const

Peek at next char in stream. /returns true if success, false if EOF is encountered before peeking the character

◆ peek()

virtual bool PoDoFo::InputStreamDevice::peek ( char & ch) const
protectedpure virtual

Peek at next char in stream. /returns true if success, false if EOF

Implemented in PoDoFo::NullStreamDevice, and PoDoFo::PdfCanvasInputDevice.