mirror of
https://github.com/qpdf/qpdf.git
synced 2024-11-16 01:27:07 +00:00
48 lines
847 B
C++
48 lines
847 B
C++
#include <qpdf/QPDFObject.hh>
|
|
|
|
QPDFObject::QPDFObject() :
|
|
owning_qpdf(nullptr),
|
|
parsed_offset(-1)
|
|
{
|
|
}
|
|
|
|
std::shared_ptr<QPDFObject>
|
|
QPDFObject::do_create(QPDFObject* object)
|
|
{
|
|
std::shared_ptr<QPDFObject> obj(object);
|
|
return obj;
|
|
}
|
|
|
|
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 != nullptr;
|
|
}
|
|
|
|
bool
|
|
QPDFObject::hasDescription()
|
|
{
|
|
return this->owning_qpdf != nullptr;
|
|
}
|
|
|
|
void
|
|
QPDFObject::setParsedOffset(qpdf_offset_t offset)
|
|
{
|
|
this->parsed_offset = offset;
|
|
}
|
|
|
|
qpdf_offset_t
|
|
QPDFObject::getParsedOffset()
|
|
{
|
|
return this->parsed_offset;
|
|
}
|