From 913eb5ac35011b3d28c653b6f89d936c8f99c844 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Tue, 22 Jan 2013 09:57:07 -0500 Subject: Add getTypeCode() and getTypeName() Add virtual methods to QPDFObject, wrappers to QPDFObjectHandle, and implementations to all the QPDF_Object types. --- libqpdf/QPDF_Keyword.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libqpdf/QPDF_Keyword.cc') diff --git a/libqpdf/QPDF_Keyword.cc b/libqpdf/QPDF_Keyword.cc index e2537842..f55088e2 100644 --- a/libqpdf/QPDF_Keyword.cc +++ b/libqpdf/QPDF_Keyword.cc @@ -17,6 +17,18 @@ QPDF_Keyword::unparse() return this->val; } +QPDFObject::object_type_e +QPDF_Keyword::getTypeCode() const +{ + return QPDFObject::ot_keyword; +} + +char const* +QPDF_Keyword::getTypeName() const +{ + return "keyword"; +} + std::string QPDF_Keyword::getVal() const { -- cgit v1.2.3-70-g09d2