aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFObject.cc
blob: ab8f1f62d6165ffdc60c9c0600cb99a1c4db4206 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include <qpdf/QPDFObject.hh>

QPDFObject::Members::Members() :
    owning_qpdf(0)
{
}

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;
}