PoDoFo 1.0.0-dev
Loading...
Searching...
No Matches
InputDevice.h
1
7#ifndef AUX_INPUT_DEVICE_H
8#define AUX_INPUT_DEVICE_H
9
10#include <istream>
11#include <fstream>
12
13#include "StreamDeviceBase.h"
14#include "InputStream.h"
15
16namespace PoDoFo {
17
21class PODOFO_API InputStreamDevice : virtual public StreamDeviceBase, public InputStream
22{
23protected:
25 InputStreamDevice(bool init);
26
27public:
32 bool Peek(char& ch) const;
33
34protected:
38 virtual bool peek(char& ch) const = 0;
39
40 void checkRead() const override;
41};
42
43};
44
45#endif // AUX_INPUT_DEVICE_H
This class represents an input device It optionally supports peeking.
Definition InputDevice.h:22
virtual bool peek(char &ch) const =0
Peek at next char in stream.
An interface for reading blocks of data from a data source.
Definition InputStream.h:20
Convenient type for char array storage and/or buffer with std::string compatibility.
Definition basetypes.h:38
SPDX-FileCopyrightText: (C) 2022 Francesco Pretto ceztko@gmail.com SPDX-License-Identifier: LGPL-2....
Definition basetypes.h:16