2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-11-16 17:45:09 +00:00
qpdf/libqpdf/QPDF_Reserved.cc
2018-12-21 18:34:56 -05:00

33 lines
528 B
C++

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