5#ifndef PDF_NAME_TREE_OPERATIONS_H
6#define PDF_NAME_TREE_OPERATIONS_H
35 virtual const PdfObject* GetValue(
const std::string_view&
treeName,
const std::string_view&
key)
const = 0;
36 virtual PdfObject* GetValue(PdfKnownNameTree
tree,
const std::string_view&
key) = 0;
47 virtual bool HasKey(PdfKnownNameTree
tree,
const std::string_view&
key)
const = 0;
48 virtual bool HasKey(
const std::string_view&
treeName,
const std::string_view&
key)
const = 0;
A low level interface with operations to handle document name trees stored in the /Names element.
Definition PdfNameTreeOperations.h:15
virtual void ToDictionary(PdfKnownNameTree tree, PdfStringMap< PdfObject > &dict, bool skipClear=false) const =0
Adds all keys and values from a name tree to a dictionary.
virtual bool HasKey(PdfKnownNameTree tree, const std::string_view &key) const =0
Tests whether a certain nametree has a value.
virtual void AddValue(PdfKnownNameTree tree, const PdfString &key, const PdfObject &value)=0
Insert a key and value in one of the dictionaries of the name tree.
virtual const PdfObject * GetValue(PdfKnownNameTree tree, const std::string_view &key) const =0
Get the object referenced by a string key in one of the dictionaries of the name tree.
This class represents a PdfName.
Definition PdfName.h:21
This class represents a PDF indirect Object in memory.
Definition PdfObject.h:31
A string that can be written to a PDF document.
Definition PdfString.h:21
Convenient type for char array storage and/or buffer with std::string compatibility.
Definition basetypes.h:30
All classes, functions, types and enums of PoDoFo are members of these namespace.
Definition basetypes.h:13