aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFObjGen.cc
blob: e372555d2c86203602b6ba3a78ace899d1231636 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);
}