aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_Unresolved.cc
blob: dc14c2f2024a9786f353fe40d9330c3a9d4278ae (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
#include <qpdf/QPDF_Unresolved.hh>

#include <stdexcept>

QPDF_Unresolved::QPDF_Unresolved(QPDF* qpdf, QPDFObjGen const& og) :
    QPDFValue(::ot_unresolved, "unresolved", qpdf, og)
{
}

std::shared_ptr<QPDFObject>
QPDF_Unresolved::create(QPDF* qpdf, QPDFObjGen const& og)
{
    return do_create(new QPDF_Unresolved(qpdf, og));
}

std::shared_ptr<QPDFObject>
QPDF_Unresolved::copy(bool shallow)
{
    throw std::logic_error("attempted to shallow copy an unresolved QPDFObjectHandle");
    return nullptr;
}

std::string
QPDF_Unresolved::unparse()
{
    throw std::logic_error("attempted to unparse an unresolved QPDFObjectHandle");
    return "";
}

void
QPDF_Unresolved::writeJSON(int json_version, JSON::Writer& p)
{
    throw std::logic_error("attempted to get JSON from an unresolved QPDFObjectHandle");
}