PoDoFo 1.0.0-dev
|
Interface to access names trees in the document. More...
#include <PdfNameTrees.h>
Public Member Functions | |
template<typename TNameTree > | |
TNameTree * | GetTree () |
template<typename TNameTree > | |
const TNameTree * | GetTree () const |
template<typename TNameTree > | |
TNameTree & | MustGetTree () |
template<typename TNameTree > | |
const TNameTree & | MustGetTree () const |
template<typename TNameTree > | |
TNameTree & | GetOrCreateTree () |
const PdfObject * | GetValue (PdfKnownNameTree tree, const std::string_view &key) const override |
Get the object referenced by a string key in one of the dictionaries of the name tree. | |
PdfObject * | GetValue (PdfKnownNameTree tree, const std::string_view &key) override |
bool | HasKey (PdfKnownNameTree tree, const std::string_view &key) const override |
Tests whether a certain nametree has a value. | |
void | ToDictionary (PdfKnownNameTree tree, PdfStringMap< PdfObject > &dict, bool skipClear=false) const override |
Adds all keys and values from a name tree to a dictionary. | |
Friends | |
class | PdfDocument |
Additional Inherited Members | |
![]() | |
PdfNameTreeOperations (const PdfNameTreeOperations &)=default | |
PdfNameTreeOperations & | operator= (const PdfNameTreeOperations &)=default |
Interface to access names trees in the document.
|
overridevirtual |
Get the object referenced by a string key in one of the dictionaries of the name tree.
tree | name of the tree to search for the key. |
key | the key to search for |
Implements PoDoFo::PdfNameTreeOperations.
|
overridevirtual |
Implements PoDoFo::PdfNameTreeOperations.
|
overridevirtual |
Tests whether a certain nametree has a value.
It is generally faster to use GetValue and check for nullptr as return value.
tree | name of the tree to search for the key. |
key | name of the key to look for |
Implements PoDoFo::PdfNameTreeOperations.
|
overridevirtual |
Adds all keys and values from a name tree to a dictionary.
Removes all keys that have been previously in the dictionary.
tree | the name of the tree to convert into a dictionary |
dict | add all keys and values to this dictionary |
skipClear | skip clearing the output dictionary |
Implements PoDoFo::PdfNameTreeOperations.