Ipelib
Public Member Functions | List of all members
ipe::PdfObj Class Referenceabstract

#include <ipepdfparser.h>

Inherited by ipe::PdfArray, ipe::PdfBool, ipe::PdfDict, ipe::PdfName, ipe::PdfNull, ipe::PdfNumber, ipe::PdfRef, and ipe::PdfString.

Public Member Functions

virtual ~PdfObj ()=0
 
virtual const PdfNullnull () const noexcept
 
virtual const PdfBoolboolean () const noexcept
 
virtual const PdfNumbernumber () const noexcept
 
virtual const PdfStringstring () const noexcept
 
virtual const PdfNamename () const noexcept
 
virtual const PdfRefref () const noexcept
 
virtual const PdfArrayarray () const noexcept
 
virtual const PdfDictdict () const noexcept
 
virtual void write (Stream &stream, const PdfRenumber *renumber=nullptr, bool inflate=false) const noexcept=0
 
String repr () const noexcept
 

Detailed Description

Abstract base class for PDF objects.

Constructor & Destructor Documentation

◆ ~PdfObj()

PdfObj::~PdfObj ( )
pure virtual

Pure virtual destructor.

Member Function Documentation

◆ null()

const PdfNull * PdfObj::null ( ) const
virtualnoexcept

Return this object as PDF null object.

Reimplemented in ipe::PdfNull.

◆ boolean()

const PdfBool * PdfObj::boolean ( ) const
virtualnoexcept

Return this object as PDF bool object.

Reimplemented in ipe::PdfBool.

◆ number()

const PdfNumber * PdfObj::number ( ) const
virtualnoexcept

Return this object as PDF number object.

Reimplemented in ipe::PdfNumber.

Referenced by ipe::PdfDict::getNumber(), and ipe::PdfDict::getNumberArray().

◆ string()

const PdfString * PdfObj::string ( ) const
virtualnoexcept

Return this object as PDF string object.

Reimplemented in ipe::PdfString.

◆ name()

const PdfName * PdfObj::name ( ) const
virtualnoexcept

Return this object as PDF name object.

Reimplemented in ipe::PdfName.

Referenced by ipe::PdfDict::deflated(), ipe::Face::Face(), and ipe::PdfDict::getName().

◆ ref()

const PdfRef * PdfObj::ref ( ) const
virtualnoexcept

Return this object as PDF reference object.

Reimplemented in ipe::PdfRef.

Referenced by ipe::Face::Face(), ipe::PdfResourceBase::getDeep(), ipe::PdfArray::obj(), and ipe::Latex::readPdf().

◆ array()

const PdfArray * PdfObj::array ( ) const
virtualnoexcept

Return this object as PDF array object.

Reimplemented in ipe::PdfArray.

Referenced by ipe::PdfDict::deflated(), ipe::Face::Face(), ipe::PdfDict::getArray(), ipe::PdfDict::getNumberArray(), and ipe::Latex::readPdf().

◆ dict()

const PdfDict * PdfObj::dict ( ) const
virtualnoexcept

◆ write()

virtual void ipe::PdfObj::write ( Stream stream,
const PdfRenumber renumber = nullptr,
bool  inflate = false 
) const
pure virtualnoexcept

◆ repr()

String PdfObj::repr ( ) const
noexcept

Return PDF representation of the object.

References write().


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