diff options
author | Jay Berkenbilt <ejb@ql.org> | 2011-08-10 19:33:58 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2011-08-10 19:33:58 +0200 |
commit | 655c55f84830190f9fa4777c615b8a622254648a (patch) | |
tree | 85b7c79d5a30f08bcd1f40f466fae74b3e3c22ac /libqpdf/qpdf | |
parent | d9ec2eb0f63f35d61d68475ca03f99af76d0b3d9 (diff) | |
download | qpdf-655c55f84830190f9fa4777c615b8a622254648a.tar.zst |
implement methods to get dictionary and array contents as map and vector
Diffstat (limited to 'libqpdf/qpdf')
-rw-r--r-- | libqpdf/qpdf/QPDF_Array.hh | 1 | ||||
-rw-r--r-- | libqpdf/qpdf/QPDF_Dictionary.hh | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/libqpdf/qpdf/QPDF_Array.hh b/libqpdf/qpdf/QPDF_Array.hh index 490df723..a57834c8 100644 --- a/libqpdf/qpdf/QPDF_Array.hh +++ b/libqpdf/qpdf/QPDF_Array.hh @@ -14,6 +14,7 @@ class QPDF_Array: public QPDFObject virtual std::string unparse(); int getNItems() const; QPDFObjectHandle getItem(int n) const; + std::vector<QPDFObjectHandle> const& getAsVector() const; void setItem(int, QPDFObjectHandle const&); protected: diff --git a/libqpdf/qpdf/QPDF_Dictionary.hh b/libqpdf/qpdf/QPDF_Dictionary.hh index e84b549e..af9f7f09 100644 --- a/libqpdf/qpdf/QPDF_Dictionary.hh +++ b/libqpdf/qpdf/QPDF_Dictionary.hh @@ -21,6 +21,7 @@ class QPDF_Dictionary: public QPDFObject bool hasKey(std::string const&); QPDFObjectHandle getKey(std::string const&); std::set<std::string> getKeys(); + std::map<std::string, QPDFObjectHandle> const& getAsMap() const; // Replace value of key, adding it if it does not exist void replaceKey(std::string const& key, QPDFObjectHandle const&); |