2008-04-29 12:55:25 +00:00
|
|
|
#include <qpdf/QPDF_Null.hh>
|
|
|
|
|
2024-02-09 13:09:08 +00:00
|
|
|
#include <qpdf/JSON_writer.hh>
|
2023-02-17 14:59:33 +00:00
|
|
|
#include <qpdf/QPDFObject_private.hh>
|
|
|
|
|
2022-08-02 21:57:33 +00:00
|
|
|
QPDF_Null::QPDF_Null() :
|
|
|
|
QPDFValue(::ot_null, "null")
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2022-09-08 15:29:23 +00:00
|
|
|
std::shared_ptr<QPDFObject>
|
2022-06-16 16:45:04 +00:00
|
|
|
QPDF_Null::create()
|
|
|
|
{
|
|
|
|
return do_create(new QPDF_Null());
|
|
|
|
}
|
|
|
|
|
2023-02-17 14:59:33 +00:00
|
|
|
std::shared_ptr<QPDFObject>
|
|
|
|
QPDF_Null::create(
|
|
|
|
std::shared_ptr<QPDFObject> parent, std::string_view const& static_descr, std::string var_descr)
|
|
|
|
{
|
|
|
|
auto n = do_create(new QPDF_Null());
|
|
|
|
n->setChildDescription(parent, static_descr, var_descr);
|
|
|
|
return n;
|
|
|
|
}
|
|
|
|
|
|
|
|
std::shared_ptr<QPDFObject>
|
|
|
|
QPDF_Null::create(
|
|
|
|
std::shared_ptr<QPDFValue> parent, std::string_view const& static_descr, std::string var_descr)
|
|
|
|
{
|
|
|
|
auto n = do_create(new QPDF_Null());
|
|
|
|
n->setChildDescription(parent, static_descr, var_descr);
|
|
|
|
return n;
|
|
|
|
}
|
|
|
|
|
2022-09-08 15:29:23 +00:00
|
|
|
std::shared_ptr<QPDFObject>
|
2022-11-14 17:54:12 +00:00
|
|
|
QPDF_Null::copy(bool shallow)
|
2022-06-16 16:45:04 +00:00
|
|
|
{
|
|
|
|
return create();
|
|
|
|
}
|
|
|
|
|
2008-04-29 12:55:25 +00:00
|
|
|
std::string
|
|
|
|
QPDF_Null::unparse()
|
|
|
|
{
|
|
|
|
return "null";
|
|
|
|
}
|
2013-01-22 14:57:07 +00:00
|
|
|
|
2024-02-09 13:09:08 +00:00
|
|
|
void
|
|
|
|
QPDF_Null::writeJSON(int json_version, JSON::Writer& p)
|
|
|
|
{
|
|
|
|
p << "null";
|
|
|
|
}
|