aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_Unresolved.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/QPDF_Unresolved.cc')
-rw-r--r--libqpdf/QPDF_Unresolved.cc41
1 files changed, 41 insertions, 0 deletions
diff --git a/libqpdf/QPDF_Unresolved.cc b/libqpdf/QPDF_Unresolved.cc
new file mode 100644
index 00000000..f348ec36
--- /dev/null
+++ b/libqpdf/QPDF_Unresolved.cc
@@ -0,0 +1,41 @@
+#include <qpdf/QPDF_Unresolved.hh>
+
+#include <stdexcept>
+
+std::shared_ptr<QPDFObject>
+QPDF_Unresolved::create()
+{
+ return do_create(new QPDF_Unresolved());
+}
+
+std::shared_ptr<QPDFObject>
+QPDF_Unresolved::shallowCopy()
+{
+ return create();
+}
+
+std::string
+QPDF_Unresolved::unparse()
+{
+ throw std::logic_error(
+ "attempted to unparse an unresolveded QPDFObjectHandle");
+ return "";
+}
+
+JSON
+QPDF_Unresolved::getJSON(int json_version)
+{
+ return JSON::makeNull();
+}
+
+QPDFObject::object_type_e
+QPDF_Unresolved::getTypeCode() const
+{
+ return QPDFObject::ot_unresolved;
+}
+
+char const*
+QPDF_Unresolved::getTypeName() const
+{
+ return "unresolved";
+}