2013-06-14 15:22:04 +00:00
|
|
|
#include <qpdf/QPDFObjGen.hh>
|
|
|
|
|
2013-07-07 23:34:44 +00:00
|
|
|
QPDFObjGen::QPDFObjGen() :
|
|
|
|
obj(0),
|
|
|
|
gen(0)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
QPDFObjGen::QPDFObjGen(int o, int g) :
|
2013-06-14 15:22:04 +00:00
|
|
|
obj(o),
|
|
|
|
gen(g)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
bool
|
|
|
|
QPDFObjGen::operator<(QPDFObjGen const& rhs) const
|
|
|
|
{
|
|
|
|
return ((this->obj < rhs.obj) ||
|
|
|
|
((this->obj == rhs.obj) && (this->gen < rhs.gen)));
|
|
|
|
}
|
|
|
|
|
2013-06-14 15:58:37 +00:00
|
|
|
bool
|
|
|
|
QPDFObjGen::operator==(QPDFObjGen const& rhs) const
|
|
|
|
{
|
|
|
|
return ((this->obj == rhs.obj) && (this->gen == rhs.gen));
|
|
|
|
}
|
|
|
|
|
2013-06-14 15:22:04 +00:00
|
|
|
int
|
|
|
|
QPDFObjGen::getObj() const
|
|
|
|
{
|
|
|
|
return this->obj;
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
|
|
|
QPDFObjGen::getGen() const
|
|
|
|
{
|
|
|
|
return this->gen;
|
|
|
|
}
|