#include <PdfDataType.h>
Public Member Functions | |
| virtual void | Write (PdfOutputDevice *pDevice, const PdfEncrypt *pEncrypt=NULL) const =0 |
| virtual bool | IsDirty () const |
| virtual void | SetDirty (bool bDirty) |
| void | SetImmutable (bool bImmutable) |
| bool | GetImmutable () const |
Protected Member Functions | |
| PdfDataType () | |
| void | AssertMutable () const |
An interface for all PDF datatype classes.
| PoDoFo::PdfDataType::PdfDataType | ( | ) | [protected] |
Create a new PdfDataType. Can only be called by subclasses
| void PoDoFo::PdfDataType::AssertMutable | ( | ) | const [inline, protected] |
Will throw an exception if called on an immutable object, so this should be called before actually changing a value!
| bool PoDoFo::PdfDataType::GetImmutable | ( | ) | const [inline] |
Retrieve if an object is immutable.
This is used by PdfImmediateWriter and PdfStreamedDocument so that no keys can be added to an object after setting stream data on it.
| bool PoDoFo::PdfDataType::IsDirty | ( | ) | const [virtual] |
The dirty flag is set if this variant has been modified after construction.
Usually the dirty flag is also set if you call any non-const member function as we cannot determine if you actually changed something or not.
| void PoDoFo::PdfDataType::SetDirty | ( | bool | bDirty | ) | [virtual] |
Sets the dirty flag of this PdfVariant
| bDirty | true if this PdfVariant has been modified from the outside |
| void PoDoFo::PdfDataType::SetImmutable | ( | bool | bImmutable | ) | [inline] |
Sets this object to immutable, so that no keys can be edited or changed.
| bImmutable | if true set the object to be immutable |
This is used by PdfImmediateWriter and PdfStreamedDocument so that no keys can be added to an object after setting stream data on it.
| virtual void PoDoFo::PdfDataType::Write | ( | PdfOutputDevice * | pDevice, | |
| const PdfEncrypt * | pEncrypt = NULL | |||
| ) | const [pure virtual] |
Write the complete datatype to a file.
| pDevice | write the object to this device | |
| pEncrypt | an encryption object which is used to encrypt this object or NULL to not encrypt this object |
Implemented in PoDoFo::PdfData, PoDoFo::PdfName, PoDoFo::PdfReference, and PoDoFo::PdfString.
1.6.1