diff options
author | Tobias Hoffmann <thobi@worker> | 2012-06-18 22:38:59 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2012-06-20 21:29:44 +0200 |
commit | db7474e0facd82577edfc1cc4883bce3fa588584 (patch) | |
tree | b1f472ddadab0c95747b3963d84682f9d5b17b06 /include | |
parent | b2e681893503d7f51679b96a3b7be580bb6d362b (diff) | |
download | qpdf-db7474e0facd82577edfc1cc4883bce3fa588584.tar.zst |
Added additional array mutators
Added methods to append to arrays, insert items into arrays, and
replace array contents with a vector of items.
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDFObjectHandle.hh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/qpdf/QPDFObjectHandle.hh b/include/qpdf/QPDFObjectHandle.hh index f2ed22b7..557ee869 100644 --- a/include/qpdf/QPDFObjectHandle.hh +++ b/include/qpdf/QPDFObjectHandle.hh @@ -200,6 +200,19 @@ class QPDFObjectHandle // Mutator methods for array objects QPDF_DLL void setArrayItem(int, QPDFObjectHandle const&); + QPDF_DLL + void setArrayFromVector(std::vector<QPDFObjectHandle> const& items); + // Insert an item before the item at the given position ("at") so + // that it has that position after insertion. If "at" is equal to + // the size of the array, insert the item at the end. + QPDF_DLL + void insertItem(int at, QPDFObjectHandle const& item); + QPDF_DLL + void appendItem(QPDFObjectHandle const& item); + // Remove the item at that position, reducing the size of the + // array by one. + QPDF_DLL + void eraseItem(int at); // Mutator methods for dictionary objects |