2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-11-11 23:45:47 +00:00
qpdf/libqpdf/QPDF_Reserved.cc
Jay Berkenbilt 16f4f94cd9 Prepare code for JSON v2
Update getJSON() methods and calls to them
2022-05-07 11:12:01 -04:00

30 lines
508 B
C++

#include <qpdf/QPDF_Reserved.hh>
#include <stdexcept>
std::string
QPDF_Reserved::unparse()
{
throw std::logic_error("attempt to unparse QPDF_Reserved");
return "";
}
JSON
QPDF_Reserved::getJSON(int json_version)
{
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";
}