aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_Unresolved.cc
blob: fbf5e15fb9c52ff552889b2b2fbe8e555c039248 (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
#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 "";
}

JSON
QPDF_Unresolved::getJSON(int json_version)
{
    throw std::logic_error("attempted to get JSON from an unresolved QPDFObjectHandle");
    return JSON::makeNull();
}