mirror of
https://github.com/qpdf/qpdf.git
synced 2024-11-10 07:11:07 +00:00
6c61be00e8
This is in preparation for restoring a QPDFObject.hh to ease the transition on qpdf_object_type_e. This commit was created by * Renaming QPDFObject.cc and QPDFObject.hh * Replacing QPDFObject\b with QPDFValueProxy (where \b is word boundary) * Running format-code * Manually resorting files in libqpdf/CMakeLists.txt * Manually refilling the comment in QPDF.hh near class Resolver
38 lines
574 B
C++
38 lines
574 B
C++
#include <qpdf/QPDF_Operator.hh>
|
|
|
|
QPDF_Operator::QPDF_Operator(std::string const& val) :
|
|
QPDFValue(::ot_operator, "operator"),
|
|
val(val)
|
|
{
|
|
}
|
|
|
|
std::shared_ptr<QPDFValueProxy>
|
|
QPDF_Operator::create(std::string const& val)
|
|
{
|
|
return do_create(new QPDF_Operator(val));
|
|
}
|
|
|
|
std::shared_ptr<QPDFValueProxy>
|
|
QPDF_Operator::shallowCopy()
|
|
{
|
|
return create(val);
|
|
}
|
|
|
|
std::string
|
|
QPDF_Operator::unparse()
|
|
{
|
|
return val;
|
|
}
|
|
|
|
JSON
|
|
QPDF_Operator::getJSON(int json_version)
|
|
{
|
|
return JSON::makeNull();
|
|
}
|
|
|
|
std::string
|
|
QPDF_Operator::getVal() const
|
|
{
|
|
return this->val;
|
|
}
|