2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-11-18 02:25:08 +00:00
qpdf/libqpdf/QPDFObject.cc

41 lines
693 B
C++
Raw Normal View History

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