diff options
author | m-holger <m-holger@kubitscheck.org> | 2022-08-12 16:14:11 +0200 |
---|---|---|
committer | m-holger <m-holger@kubitscheck.org> | 2022-09-01 18:09:07 +0200 |
commit | 89061d5b33baa7e8f4e3486d0c7ccf2447500b13 (patch) | |
tree | aac88e38fb22b33ca4b3daaab36a544f6a037bd8 /include | |
parent | ae6e484e23e4f11878689be32bfcc6a28259b708 (diff) | |
download | qpdf-89061d5b33baa7e8f4e3486d0c7ccf2447500b13.tar.zst |
Change QPDF_Unresolved::create method to take QPDF* and QPDFObjGen parameters
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDFValue.hh | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/include/qpdf/QPDFValue.hh b/include/qpdf/QPDFValue.hh index 4ed3a0de..8b4f53b5 100644 --- a/include/qpdf/QPDFValue.hh +++ b/include/qpdf/QPDFValue.hh @@ -25,6 +25,7 @@ #include <qpdf/Constants.h> #include <qpdf/DLL.h> #include <qpdf/JSON.hh> +#include <qpdf/QPDFObjGen.hh> #include <qpdf/Types.h> #include <string> @@ -73,11 +74,21 @@ class QPDFValue { return parsed_offset; } + QPDF* + getQPDF() + { + return qpdf; + } + QPDFObjGen + getObjGen() + { + return og; + } protected: QPDFValue() : type_code(::ot_uninitialized), - type_name("uninitilized") + type_name("uninitialized") { } QPDFValue(qpdf_object_type_e type_code, char const* type_name) : @@ -85,7 +96,17 @@ class QPDFValue type_name(type_name) { } - + QPDFValue( + qpdf_object_type_e type_code, + char const* type_name, + QPDF* qpdf, + QPDFObjGen const& og) : + type_code(type_code), + type_name(type_name), + qpdf(qpdf), + og(og) + { + } virtual void releaseResolved() { @@ -100,6 +121,10 @@ class QPDFValue qpdf_offset_t parsed_offset{-1}; const qpdf_object_type_e type_code; char const* type_name; + + protected: + QPDF* qpdf{nullptr}; + QPDFObjGen og; }; #endif // QPDFVALUE_HH |