PoDoFo 0.9.20
PoDoFo::PdfDataProvider Class Referenceabstract

#include <PdfDataProvider.h>

Inheritance diagram for PoDoFo::PdfDataProvider:
PoDoFo::PdfData PoDoFo::PdfDataContainer PoDoFo::PdfName PoDoFo::PdfString PoDoFo::PdfArray PoDoFo::PdfDictionary

Public Member Functions

std::string ToString () const
 
virtual void Write (OutputStream &stream, PdfWriteFlags writeMode, const PdfStatefulEncrypt &encrypt, charbuff &buffer) const =0
 

Protected Member Functions

 PdfDataProvider ()
 

Detailed Description

An interface for data provider classes that are stored in a PdfVariant

See also
PdfName
PdfArray
PdfReference
PdfVariant
PdfDictionary
PdfString

Constructor & Destructor Documentation

◆ PdfDataProvider()

PdfDataProvider::PdfDataProvider ( )
protected

Create a new PdfDataProvider. Can only be called by subclasses

Member Function Documentation

◆ ToString()

string PdfDataProvider::ToString ( ) const

Converts the current object into a string representation which can be written directly to a PDF file on disc.

Parameters
strthe object string is returned in this object.

◆ Write()

virtual void PoDoFo::PdfDataProvider::Write ( OutputStream & stream,
PdfWriteFlags writeMode,
const PdfStatefulEncrypt & encrypt,
charbuff & buffer ) const
pure virtual

Write the complete datatype to a file.

Parameters
devicewrite the object to this device
writeModeadditional options for writing this object
encryptan encryption object which is used to encrypt this object or nullptr to not encrypt this object

Implemented in PoDoFo::PdfArray, PoDoFo::PdfData, PoDoFo::PdfDictionary, PoDoFo::PdfName, and PoDoFo::PdfString.