aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFObjGen.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2021-02-21 22:09:16 +0100
committerJay Berkenbilt <ejb@ql.org>2021-02-21 22:21:52 +0100
commita76decd2d59f8d23791013d822e65b4363d450cd (patch)
treede50a641a3829ca749ec16e2dfb6e21579d99df6 /libqpdf/QPDFObjGen.cc
parent7540d2082a97637f334ee882e57afc986ef87116 (diff)
downloadqpdf-a76decd2d59f8d23791013d822e65b4363d450cd.tar.zst
Add QPDFObjGen::unparse
Diffstat (limited to 'libqpdf/QPDFObjGen.cc')
-rw-r--r--libqpdf/QPDFObjGen.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/libqpdf/QPDFObjGen.cc b/libqpdf/QPDFObjGen.cc
index a887720e..6f956239 100644
--- a/libqpdf/QPDFObjGen.cc
+++ b/libqpdf/QPDFObjGen.cc
@@ -1,4 +1,5 @@
#include <qpdf/QPDFObjGen.hh>
+#include <qpdf/QUtil.hh>
QPDFObjGen::QPDFObjGen() :
obj(0),
@@ -42,3 +43,10 @@ std::ostream& operator<<(std::ostream& os, const QPDFObjGen& og)
os << og.obj << "," << og.gen;
return os;
}
+
+std::string
+QPDFObjGen::unparse() const
+{
+ return QUtil::int_to_string(this->obj) + "," +
+ QUtil::int_to_string(this->gen);
+}