PoDoFo 1.1.0
Loading...
Searching...
No Matches
OutputDevice.h
1
7#ifndef AUX_OUTPUT_DEVICE_H
8#define AUX_OUTPUT_DEVICE_H
9
10#include <ostream>
11#include <fstream>
12
13#include "StreamDeviceBase.h"
14#include "OutputStream.h"
15
16namespace PoDoFo {
17
18class PODOFO_API OutputStreamDevice : virtual public StreamDeviceBase, public OutputStream
19{
20protected:
21 OutputStreamDevice();
22 OutputStreamDevice(bool init);
23
24public:
27 void Truncate();
28
29protected:
30 virtual void truncate() = 0;
31 void checkWrite() const override;
32};
33
34};
35
36#endif // AUX_OUTPUT_DEVICE_H
SPDX-FileCopyrightText: (C) 2022 Francesco Pretto ceztko@gmail.com SPDX-License-Identifier: LGPL-2....
Definition basetypes.h:16
@ Truncate
Truncate an existing file for writing/reading.