aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_String.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2013-01-22 15:57:07 +0100
committerJay Berkenbilt <ejb@ql.org>2013-01-22 16:01:45 +0100
commit913eb5ac35011b3d28c653b6f89d936c8f99c844 (patch)
treeded1a2e1b5f9fcdf6a5e77e44e30aa528be306be /libqpdf/QPDF_String.cc
parentf81152311e5737e5e0de9dd9462311f306c6921b (diff)
downloadqpdf-913eb5ac35011b3d28c653b6f89d936c8f99c844.tar.zst
Add getTypeCode() and getTypeName()
Add virtual methods to QPDFObject, wrappers to QPDFObjectHandle, and implementations to all the QPDF_Object types.
Diffstat (limited to 'libqpdf/QPDF_String.cc')
-rw-r--r--libqpdf/QPDF_String.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/libqpdf/QPDF_String.cc b/libqpdf/QPDF_String.cc
index 2ac2ed32..3a8e7074 100644
--- a/libqpdf/QPDF_String.cc
+++ b/libqpdf/QPDF_String.cc
@@ -33,6 +33,18 @@ QPDF_String::unparse()
return unparse(false);
}
+QPDFObject::object_type_e
+QPDF_String::getTypeCode() const
+{
+ return QPDFObject::ot_string;
+}
+
+char const*
+QPDF_String::getTypeName() const
+{
+ return "string";
+}
+
std::string
QPDF_String::unparse(bool force_binary)
{