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