summaryrefslogtreecommitdiffstats
path: root/libqpdf/qpdf/QPDFObject_private.hh
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/qpdf/QPDFObject_private.hh')
-rw-r--r--libqpdf/qpdf/QPDFObject_private.hh22
1 files changed, 21 insertions, 1 deletions
diff --git a/libqpdf/qpdf/QPDFObject_private.hh b/libqpdf/qpdf/QPDFObject_private.hh
index 4d388503..0dc04699 100644
--- a/libqpdf/qpdf/QPDFObject_private.hh
+++ b/libqpdf/qpdf/QPDFObject_private.hh
@@ -12,6 +12,7 @@
#include <qpdf/Types.h>
#include <string>
+#include <string_view>
class QPDF;
class QPDFObjectHandle;
@@ -71,11 +72,30 @@ class QPDFObject
void
setDescription(
QPDF* qpdf,
- std::shared_ptr<std::string>& description,
+ std::shared_ptr<QPDFValue::Description>& description,
qpdf_offset_t offset = -1)
{
return value->setDescription(qpdf, description, offset);
}
+ void
+ setChildDescription(
+ std::shared_ptr<QPDFObject> parent,
+ std::string_view const& static_descr,
+ std::string var_descr)
+ {
+ auto qpdf = parent ? parent->value->qpdf : nullptr;
+ value->setChildDescription(
+ qpdf, parent->value, static_descr, var_descr);
+ }
+ void
+ setChildDescription(
+ std::shared_ptr<QPDFValue> parent,
+ std::string_view const& static_descr,
+ std::string var_descr)
+ {
+ auto qpdf = parent ? parent->qpdf : nullptr;
+ value->setChildDescription(qpdf, parent, static_descr, var_descr);
+ }
bool
getDescription(QPDF*& qpdf, std::string& description)
{