2013-01-23 14:38:05 +00:00
|
|
|
#include <qpdf/QPDF_Operator.hh>
|
|
|
|
|
|
|
|
QPDF_Operator::QPDF_Operator(std::string const& val) :
|
|
|
|
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()
|
|
|
|
{
|
|
|
|
return this->val;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
QPDFObject::object_type_e
|
|
|
|
QPDF_Operator::getTypeCode() const
|
|
|
|
{
|
|
|
|
return QPDFObject::ot_operator;
|
|
|
|
}
|
|
|
|
|
|
|
|
char const*
|
|
|
|
QPDF_Operator::getTypeName() const
|
|
|
|
{
|
|
|
|
return "operator";
|
|
|
|
}
|
|
|
|
|
|
|
|
std::string
|
|
|
|
QPDF_Operator::getVal() const
|
|
|
|
{
|
|
|
|
return this->val;
|
|
|
|
}
|