7 #ifndef PDF_NAME_TREE_OPERATIONS_H
8 #define PDF_NAME_TREE_OPERATIONS_H
10 #include "PdfObject.h"
39 virtual const PdfObject*
GetValue(PdfKnownNameTree tree,
const std::string_view& key)
const = 0;
40 virtual const PdfObject* GetValue(
const std::string_view& treeName,
const std::string_view& key)
const = 0;
41 virtual PdfObject* GetValue(PdfKnownNameTree tree,
const std::string_view& key) = 0;
42 virtual PdfObject* GetValue(
const std::string_view& treeName,
const std::string_view& key) = 0;
53 virtual bool HasKey(PdfKnownNameTree tree,
const std::string_view& key)
const = 0;
54 virtual bool HasKey(
const std::string_view& treeName,
const std::string_view& key)
const = 0;
64 virtual void ToDictionary(PdfKnownNameTree tree, PdfStringMap<PdfObject>& dict,
bool skipClear =
false)
const = 0;
65 virtual void ToDictionary(
const std::string_view& treeName, PdfStringMap<PdfObject>& dict,
bool skipClear =
false)
const = 0;
A low level interface with operations to handle document name trees stored in the /Names element.
Definition: PdfNameTreeOperations.h:18
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:24
This class represents a PDF indirect Object in memory.
Definition: PdfObject.h:35
A string that can be written to a PDF document.
Definition: PdfString.h:24
SPDX-FileCopyrightText: (C) 2022 Francesco Pretto ceztko@gmail.com SPDX-License-Identifier: LGPL-2....
Definition: basetypes.h:16