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 /libqpdf/qpdf | |
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 'libqpdf/qpdf')
-rw-r--r-- | libqpdf/qpdf/QPDF_Array.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libqpdf/qpdf/QPDF_Array.hh b/libqpdf/qpdf/QPDF_Array.hh index a57834c8..338f6eb2 100644 --- a/libqpdf/qpdf/QPDF_Array.hh +++ b/libqpdf/qpdf/QPDF_Array.hh @@ -12,10 +12,16 @@ class QPDF_Array: public QPDFObject QPDF_Array(std::vector<QPDFObjectHandle> const& items); virtual ~QPDF_Array(); virtual std::string unparse(); + int getNItems() const; QPDFObjectHandle getItem(int n) const; std::vector<QPDFObjectHandle> const& getAsVector() const; + void setItem(int, QPDFObjectHandle const&); + void setFromVector(std::vector<QPDFObjectHandle> const& items); + void insertItem(int at, QPDFObjectHandle const& item); + void appendItem(QPDFObjectHandle const& item); + void eraseItem(int at); protected: virtual void releaseResolved(); |