Commit a76decd2d59f8d23791013d822e65b4363d450cd
1 parent
7540d208
Add QPDFObjGen::unparse
Showing
3 changed files
with
12 additions
and
0 deletions
ChangeLog
include/qpdf/QPDFObjGen.hh
libqpdf/QPDFObjGen.cc
| 1 | 1 | #include <qpdf/QPDFObjGen.hh> |
| 2 | +#include <qpdf/QUtil.hh> | |
| 2 | 3 | |
| 3 | 4 | QPDFObjGen::QPDFObjGen() : |
| 4 | 5 | obj(0), |
| ... | ... | @@ -42,3 +43,10 @@ std::ostream& operator<<(std::ostream& os, const QPDFObjGen& og) |
| 42 | 43 | os << og.obj << "," << og.gen; |
| 43 | 44 | return os; |
| 44 | 45 | } |
| 46 | + | |
| 47 | +std::string | |
| 48 | +QPDFObjGen::unparse() const | |
| 49 | +{ | |
| 50 | + return QUtil::int_to_string(this->obj) + "," + | |
| 51 | + QUtil::int_to_string(this->gen); | |
| 52 | +} | ... | ... |