7 #ifndef PDF_STRING_STREAM
8 #define PDF_STRING_STREAM
11 #include <podofo/auxiliary/OutputStream.h>
33 std::ostream& (*pfn)(std::ostream&));
39 std::string_view GetString()
const;
41 std::string TakeString();
45 void SetPrecision(
unsigned short value);
47 unsigned short GetPrecision()
const;
49 unsigned GetSize()
const;
51 explicit operator std::ostream& () {
return *m_stream; }
54 void writeBuffer(
const char* buffer,
size_t size);
57 using OutputStream::Flush;
62 std::unique_ptr<std::ostream> m_stream;
SPDX-FileCopyrightText: (C) 2005 Dominik Seichter domseichter@web.de SPDX-FileCopyrightText: (C) 2020...
An interface for writing blocks of data to a data source.
Definition: OutputStream.h:18
void Write(char ch)
Write the character in the device.
Definition: OutputStream.cpp:17
A specialized Pdf output string stream It supplies an iostream-like operator<< interface,...
Definition: PdfStringStream.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