PoDoFo  1.0.0-dev
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 
16 namespace PoDoFo {
17 
21 class PODOFO_API InputStreamDevice : virtual public StreamDeviceBase, public InputStream
22 {
23 protected:
25  InputStreamDevice(bool init);
26 
27 public:
32  bool Peek(char& ch) const;
33 
34 protected:
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
SPDX-FileCopyrightText: (C) 2022 Francesco Pretto ceztko@gmail.com SPDX-License-Identifier: LGPL-2....
Definition: basetypes.h:16