#include <PdfDataType.h>
◆ PdfDataType()
PoDoFo::PdfDataType::PdfDataType |
( |
| ) |
|
|
protected |
Create a new PdfDataType. Can only be called by subclasses
◆ AssertMutable()
void PoDoFo::PdfDataType::AssertMutable |
( |
| ) |
const |
|
inlineprotected |
Will throw an exception if called on an immutable object, so this should be called before actually changing a value!
◆ GetImmutable()
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.
- Returns
- true if the object is immutable
◆ IsDirty()
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.
- Returns
- true if the value is dirty and has been modified since construction
Reimplemented in PoDoFo::PdfArray, and PoDoFo::PdfDictionary.
◆ SetDirty()
void PoDoFo::PdfDataType::SetDirty |
( |
bool |
bDirty | ) |
|
|
virtual |
◆ SetImmutable()
void PoDoFo::PdfDataType::SetImmutable |
( |
bool |
bImmutable | ) |
|
|
inline |
Sets this object to immutable, so that no keys can be edited or changed.
- Parameters
-
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.
◆ Write()