aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_Operator.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2013-01-23 15:38:05 +0100
committerJay Berkenbilt <ejb@ql.org>2013-01-23 15:38:05 +0100
commitbfda71774907263f5263a3ae2e8c8fa40fbc2cca (patch)
tree0861f846c89f67fc18b11793fdb662313c5dfd9e /libqpdf/QPDF_Operator.cc
parent913eb5ac35011b3d28c653b6f89d936c8f99c844 (diff)
downloadqpdf-bfda71774907263f5263a3ae2e8c8fa40fbc2cca.tar.zst
Cosmetic changes to be closer to Adobe terminology
Change object type Keyword to Operator, and place the order of the object types in object_type_e in the same order as they are mentioned in the PDF specification. Note that this change only breaks backward compatibility with code that has not yet been released.
Diffstat (limited to 'libqpdf/QPDF_Operator.cc')
-rw-r--r--libqpdf/QPDF_Operator.cc36
1 files changed, 36 insertions, 0 deletions
diff --git a/libqpdf/QPDF_Operator.cc b/libqpdf/QPDF_Operator.cc
new file mode 100644
index 00000000..c6c68816
--- /dev/null
+++ b/libqpdf/QPDF_Operator.cc
@@ -0,0 +1,36 @@
+#include <qpdf/QPDF_Operator.hh>
+
+#include <qpdf/QUtil.hh>
+
+QPDF_Operator::QPDF_Operator(std::string const& val) :
+ val(val)
+{
+}
+
+QPDF_Operator::~QPDF_Operator()
+{
+}
+
+std::string
+QPDF_Operator::unparse()
+{
+ return this->val;
+}
+
+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;
+}