2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-11-12 07:46:28 +00:00
qpdf/libqpdf/QPDFObject.cc

50 lines
811 B
C++
Raw Normal View History

#include <qpdf/QPDFObject.hh>
QPDFObject::Members::Members() :
2019-10-02 11:30:53 +00:00
owning_qpdf(0),
parsed_offset(-1)
{
}
QPDFObject::Members::~Members()
{
}
QPDFObject::QPDFObject() :
m(new Members)
{
}
void
QPDFObject::setDescription(QPDF* qpdf, std::string const& description)
{
this->m->owning_qpdf = qpdf;
this->m->object_description = description;
}
bool
QPDFObject::getDescription(QPDF*& qpdf, std::string& description)
{
qpdf = this->m->owning_qpdf;
description = this->m->object_description;
return this->m->owning_qpdf != 0;
}
bool
QPDFObject::hasDescription()
{
return this->m->owning_qpdf != 0;
}
2019-10-02 11:30:53 +00:00
void
QPDFObject::setParsedOffset(qpdf_offset_t offset)
{
this->m->parsed_offset = offset;
}
qpdf_offset_t
QPDFObject::getParsedOffset()
{
return this->m->parsed_offset;
}