aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_Reserved.cc
blob: 6cce2f2a13cf6e4247b3a05e687312ac43c03f9a (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
#include <qpdf/QPDF_Reserved.hh>
#include <stdexcept>

QPDF_Reserved::~QPDF_Reserved()
{
}

std::string
QPDF_Reserved::unparse()
{
    throw std::logic_error("attempt to unparse QPDF_Reserved");
    return "";
}

JSON
QPDF_Reserved::getJSON()
{
    throw std::logic_error("attempt to generate JSON from QPDF_Reserved");
    return JSON::makeNull();
}

QPDFObject::object_type_e
QPDF_Reserved::getTypeCode() const
{
    return QPDFObject::ot_reserved;
}

char const*
QPDF_Reserved::getTypeName() const
{
    return "reserved";
}