2022-08-02 12:12:17 +00:00
|
|
|
#include <qpdf/QPDF_Unresolved.hh>
|
|
|
|
|
|
|
|
#include <stdexcept>
|
|
|
|
|
2022-08-12 14:14:11 +00:00
|
|
|
QPDF_Unresolved::QPDF_Unresolved(QPDF* qpdf, QPDFObjGen const& og) :
|
|
|
|
QPDFValue(::ot_unresolved, "unresolved", qpdf, og)
|
2022-08-02 21:57:33 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2022-09-08 15:29:23 +00:00
|
|
|
std::shared_ptr<QPDFObject>
|
2022-08-12 14:14:11 +00:00
|
|
|
QPDF_Unresolved::create(QPDF* qpdf, QPDFObjGen const& og)
|
2022-08-02 12:12:17 +00:00
|
|
|
{
|
2022-08-12 14:14:11 +00:00
|
|
|
return do_create(new QPDF_Unresolved(qpdf, og));
|
2022-08-02 12:12:17 +00:00
|
|
|
}
|
|
|
|
|
2022-09-08 15:29:23 +00:00
|
|
|
std::shared_ptr<QPDFObject>
|
2022-08-02 12:12:17 +00:00
|
|
|
QPDF_Unresolved::shallowCopy()
|
|
|
|
{
|
2022-08-12 14:14:11 +00:00
|
|
|
throw std::logic_error(
|
2022-09-08 12:03:57 +00:00
|
|
|
"attempted to shallow copy an unresolved QPDFObjectHandle");
|
2022-09-07 18:11:24 +00:00
|
|
|
return nullptr;
|
2022-08-02 12:12:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
std::string
|
|
|
|
QPDF_Unresolved::unparse()
|
|
|
|
{
|
|
|
|
throw std::logic_error(
|
2022-08-02 20:35:04 +00:00
|
|
|
"attempted to unparse an unresolved QPDFObjectHandle");
|
2022-08-02 12:12:17 +00:00
|
|
|
return "";
|
|
|
|
}
|
|
|
|
|
|
|
|
JSON
|
|
|
|
QPDF_Unresolved::getJSON(int json_version)
|
|
|
|
{
|
2022-09-08 12:03:57 +00:00
|
|
|
throw std::logic_error(
|
|
|
|
"attempted to get JSON from an unresolved QPDFObjectHandle");
|
2022-08-02 12:12:17 +00:00
|
|
|
return JSON::makeNull();
|
|
|
|
}
|