diff options
author | m-holger <m-holger@kubitscheck.org> | 2022-08-10 14:16:06 +0200 |
---|---|---|
committer | m-holger <m-holger@kubitscheck.org> | 2022-09-01 15:29:53 +0200 |
commit | c0cd72a3eef996e597ba82b784de029ec6d88707 (patch) | |
tree | 3f06acfc6c79822a9f938a83719c1ff9fdc1da0f /include | |
parent | 23d50a2f14db56be4cb4efcc413b8ef44713613f (diff) | |
download | qpdf-c0cd72a3eef996e597ba82b784de029ec6d88707.tar.zst |
Add private methods QPDF::isCached and QPDF::isUnresolved
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDF.hh | 2 | ||||
-rw-r--r-- | include/qpdf/QPDFObject.hh | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh index 701c5e55..ee265cec 100644 --- a/include/qpdf/QPDF.hh +++ b/include/qpdf/QPDF.hh @@ -1175,6 +1175,8 @@ class QPDF QPDFObjectHandle reserveStream(QPDFObjGen const& og); QPDFObjectHandle newIndirect(QPDFObjGen const&, std::shared_ptr<QPDFObject> const&); + bool isCached(QPDFObjGen const& og); + bool isUnresolved(QPDFObjGen const& og); // Calls finish() on the pipeline when done but does not delete it bool pipeStreamData( diff --git a/include/qpdf/QPDFObject.hh b/include/qpdf/QPDFObject.hh index a1930168..198488dd 100644 --- a/include/qpdf/QPDFObject.hh +++ b/include/qpdf/QPDFObject.hh @@ -134,7 +134,11 @@ class QPDFObject value = o->value; o->value = v; } - + bool + isUnresolved() + { + return value->type_code == ::ot_unresolved; + } template <typename T> T* as() |