2013-01-23 14:38:05 +00:00
|
|
|
#include <qpdf/QPDF_Operator.hh>
|
|
|
|
|
2024-02-09 13:09:08 +00:00
|
|
|
#include <qpdf/JSON_writer.hh>
|
|
|
|
|
2013-01-23 14:38:05 +00:00
|
|
|
QPDF_Operator::QPDF_Operator(std::string const& val) :
|
2024-08-12 16:52:42 +00:00
|
|
|
QPDFValue(::ot_operator),
|
2013-01-23 14:38:05 +00:00
|
|
|
val(val)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2022-09-08 15:29:23 +00:00
|
|
|
std::shared_ptr<QPDFObject>
|
2022-06-16 16:45:04 +00:00
|
|
|
QPDF_Operator::create(std::string const& val)
|
|
|
|
{
|
|
|
|
return do_create(new QPDF_Operator(val));
|
|
|
|
}
|
|
|
|
|
2022-09-08 15:29:23 +00:00
|
|
|
std::shared_ptr<QPDFObject>
|
2022-11-14 17:54:12 +00:00
|
|
|
QPDF_Operator::copy(bool shallow)
|
2022-06-16 16:45:04 +00:00
|
|
|
{
|
|
|
|
return create(val);
|
|
|
|
}
|
|
|
|
|
2013-01-23 14:38:05 +00:00
|
|
|
std::string
|
|
|
|
QPDF_Operator::unparse()
|
|
|
|
{
|
2022-08-02 20:35:04 +00:00
|
|
|
return val;
|
2013-01-23 14:38:05 +00:00
|
|
|
}
|
|
|
|
|
2024-02-09 13:09:08 +00:00
|
|
|
void
|
|
|
|
QPDF_Operator::writeJSON(int json_version, JSON::Writer& p)
|
|
|
|
{
|
|
|
|
p << "null";
|
|
|
|
}
|