2013-01-23 14:38:05 +00:00
|
|
|
#include <qpdf/QPDF_Operator.hh>
|
|
|
|
|
|
|
|
QPDF_Operator::QPDF_Operator(std::string const& val) :
|
2022-08-02 21:57:33 +00:00
|
|
|
QPDFValue(::ot_operator, "operator"),
|
2013-01-23 14:38:05 +00:00
|
|
|
val(val)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2022-06-16 16:45:04 +00:00
|
|
|
std::shared_ptr<QPDFObject>
|
|
|
|
QPDF_Operator::create(std::string const& val)
|
|
|
|
{
|
|
|
|
return do_create(new QPDF_Operator(val));
|
|
|
|
}
|
|
|
|
|
|
|
|
std::shared_ptr<QPDFObject>
|
|
|
|
QPDF_Operator::shallowCopy()
|
|
|
|
{
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2018-12-17 22:40:29 +00:00
|
|
|
JSON
|
2022-05-07 11:53:45 +00:00
|
|
|
QPDF_Operator::getJSON(int json_version)
|
2018-12-17 22:40:29 +00:00
|
|
|
{
|
|
|
|
return JSON::makeNull();
|
|
|
|
}
|
|
|
|
|
2013-01-23 14:38:05 +00:00
|
|
|
std::string
|
|
|
|
QPDF_Operator::getVal() const
|
|
|
|
{
|
|
|
|
return this->val;
|
|
|
|
}
|