4#ifndef PDF_STRING_STREAM
5#define PDF_STRING_STREAM
8#include <podofo/auxiliary/OutputStream.h>
29 std::ostream& (*
pfn)(std::ostream&));
35 std::string_view GetString()
const;
37 std::string TakeString();
41 void SetPrecision(
unsigned short value);
43 unsigned short GetPrecision()
const;
45 unsigned GetSize()
const;
47 explicit operator std::ostream& () {
return *m_stream; }
50 void writeBuffer(
const char*
buffer,
size_t size);
53 using OutputStream::Flush;
54 using OutputStream::Write;
58 std::unique_ptr<std::ostream> m_stream;
This file should be included as the FIRST file in every header of PoDoFo lib.
An interface for writing blocks of data to a data source.
Definition OutputStream.h:15
A specialized Pdf output string stream It supplies an iostream-like operator<< interface,...
Definition PdfStringStream.h:16
Convenient type for char array storage and/or buffer with std::string compatibility.
Definition basetypes.h:30
All classes, functions, types and enums of PoDoFo are members of these namespace.
Definition basetypes.h:13