7 #ifndef PDF_RESOURCE_OPERATIONS_H
8 #define PDF_RESOURCE_OPERATIONS_H
10 #include "PdfDictionary.h"
51 virtual void RemoveResource(PdfResourceType type,
const std::string_view& key) = 0;
89 virtual void RemoveResource(
const std::string_view& type,
const std::string_view& key) = 0;
Helper class to iterate through indirect objects.
Definition: PdfDictionary.h:22
This class represents a PdfName.
Definition: PdfName.h:24
This class represents a PDF indirect Object in memory.
Definition: PdfObject.h:35
Low level interface for resource handling operations Inherited by PdfResources.
Definition: PdfResourceOperations.h:19
virtual PdfDictionaryConstIndirectIterable GetResourceIterator(const std::string_view &type) const =0
Get resource iterator by type name string.
virtual void RemoveResource(const std::string_view &type, const std::string_view &key)=0
Remove resource by type name string and key.
virtual const PdfObject * GetResource(PdfResourceType type, const std::string_view &key) const =0
Get resource by type and key.
virtual void AddResource(const PdfName &type, const PdfName &key, const PdfObject &obj)=0
Add resource by type name string and key.
virtual void AddResource(PdfResourceType type, const PdfName &key, const PdfObject &obj)=0
Add resource by type and key.
virtual const PdfObject * GetResource(const std::string_view &type, const std::string_view &key) const =0
Get resource by type name string and key.
virtual PdfObject * GetResource(const std::string_view &type, const std::string_view &key)=0
Get resource by type name string and key.
virtual void RemoveResources(const std::string_view &type)=0
Remove resources by type name string.
virtual PdfName AddResource(PdfResourceType type, const PdfObject &obj)=0
Add resource by type generating a new unique identifier.
virtual void RemoveResource(PdfResourceType type, const std::string_view &key)=0
Remove resource by type and key.
virtual PdfDictionaryIndirectIterable GetResourceIterator(const std::string_view &type)=0
Get resource iterator by type name string.
virtual PdfName AddResource(const PdfName &type, const PdfObject &obj)=0
Add resource by type name string generating a new unique identifier.
virtual PdfDictionaryIndirectIterable GetResourceIterator(PdfResourceType type)=0
Get resource iterator by type.
virtual PdfObject * GetResource(PdfResourceType type, const std::string_view &key)=0
Get resource by type and key.
virtual void RemoveResources(PdfResourceType type)=0
Remove resources by type.
virtual PdfDictionaryConstIndirectIterable GetResourceIterator(PdfResourceType type) const =0
Get resource iterator by type.
SPDX-FileCopyrightText: (C) 2022 Francesco Pretto ceztko@gmail.com SPDX-License-Identifier: LGPL-2....
Definition: basetypes.h:16