aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_Array.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2011-08-10 19:33:58 +0200
committerJay Berkenbilt <ejb@ql.org>2011-08-10 19:33:58 +0200
commit655c55f84830190f9fa4777c615b8a622254648a (patch)
tree85b7c79d5a30f08bcd1f40f466fae74b3e3c22ac /libqpdf/QPDF_Array.cc
parentd9ec2eb0f63f35d61d68475ca03f99af76d0b3d9 (diff)
downloadqpdf-655c55f84830190f9fa4777c615b8a622254648a.tar.zst
implement methods to get dictionary and array contents as map and vector
Diffstat (limited to 'libqpdf/QPDF_Array.cc')
-rw-r--r--libqpdf/QPDF_Array.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/libqpdf/QPDF_Array.cc b/libqpdf/QPDF_Array.cc
index ae70bd67..ab61f307 100644
--- a/libqpdf/QPDF_Array.cc
+++ b/libqpdf/QPDF_Array.cc
@@ -51,6 +51,12 @@ QPDF_Array::getItem(int n) const
return this->items[n];
}
+std::vector<QPDFObjectHandle> const&
+QPDF_Array::getAsVector() const
+{
+ return this->items;
+}
+
void
QPDF_Array::setItem(int n, QPDFObjectHandle const& oh)
{