PoDoFo 1.2.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
PoDoFo::PdfStringStream Class Referencefinal

A specialized Pdf output string stream It supplies an iostream-like operator<< interface, while still inheriting OutputStream. More...

#include <PdfStringStream.h>

Inheritance diagram for PoDoFo::PdfStringStream:
PoDoFo::OutputStream

Public Member Functions

template<typename T >
PdfStringStream & operator<< (T const &val)
 
PdfStringStream & operator<< (std::ostream &(*pfn)(std::ostream &))
 
PdfStringStream & operator<< (float val)
 
PdfStringStream & operator<< (double val)
 
std::string_view GetString () const
 
std::string TakeString ()
 
void Clear ()
 
void SetPrecision (unsigned short value)
 
unsigned short GetPrecision () const
 
unsigned GetSize () const
 
 operator std::ostream & ()
 
- Public Member Functions inherited from PoDoFo::OutputStream
void Write (char ch)
 Write the character in the device.
 
void Write (const std::string_view &view)
 Write the view to the OutputStream.
 
void Write (const char *buffer, size_t size)
 Write data to the output stream.
 
void Flush ()
 

Protected Member Functions

void writeBuffer (const char *buffer, size_t size)
 
- Protected Member Functions inherited from PoDoFo::OutputStream
virtual void flush ()
 
virtual void checkWrite () const
 Optional checks before writing By default does nothing.
 
void enableWriteWindow (char *cur, char *end)
 Enable the inline write window over the supplied memory region.
 
void disableWriteWindow ()
 Disarm the window, once its pending bytes have been handed to the sink.
 

Additional Inherited Members

- Static Protected Member Functions inherited from PoDoFo::OutputStream
static void WriteBuffer (OutputStream &stream, const char *buffer, size_t size)
 Write to another stream, skipping its checkWrite() but still serving its inline write window.
 
static void Flush (OutputStream &stream)
 
- Protected Attributes inherited from PoDoFo::OutputStream
char * m_wcur
 Inline write window over memory owned by the implementation, mirroring InputStream's read window.
 
char * m_wend
 

Detailed Description

A specialized Pdf output string stream It supplies an iostream-like operator<< interface, while still inheriting OutputStream.

Member Function Documentation

◆ writeBuffer()

void PdfStringStream::writeBuffer ( const char *  buffer,
size_t  size 
)
protectedvirtual

Implements PoDoFo::OutputStream.


The documentation for this class was generated from the following files: