aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFObjGen.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/QPDFObjGen.cc')
-rw-r--r--libqpdf/QPDFObjGen.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/libqpdf/QPDFObjGen.cc b/libqpdf/QPDFObjGen.cc
new file mode 100644
index 00000000..e372555d
--- /dev/null
+++ b/libqpdf/QPDFObjGen.cc
@@ -0,0 +1,17 @@
+#include <qpdf/QPDFObjGen.hh>
+
+#include <qpdf/QUtil.hh>
+
+std::ostream&
+operator<<(std::ostream& os, const QPDFObjGen& og)
+{
+ os << og.obj << "," << og.gen;
+ return os;
+}
+
+std::string
+QPDFObjGen::unparse(char separator) const
+{
+ return QUtil::int_to_string(this->obj) + separator +
+ QUtil::int_to_string(this->gen);
+}