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. --- ChangeLog | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 0a3b3d81..cd2ee734 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,10 +1,23 @@ +2013-01-22 Jay Berkenbilt + + * Add QPDFObjectHandle::getTypeCode(). This method returns a + unique integer (enumerated type) value corresponding to the object + type of the QPDFObjectHandle. It can be used as an alternative to + the QPDFObjectHandle::is* methods for type testing, particularly + where there is a desire to use a switch statement or optimize for + performance when testing object types. + + * Add QPDFObjectHandle::getTypeName(). This method returns a + string literal describing the object type. It is useful for + testing and debugging. + 2013-01-20 Jay Berkenbilt - * Added QPDFObjectHandle::parseContentStream, which parses the + * Add QPDFObjectHandle::parseContentStream, which parses the objects in a content stream and calls handlers in a callback class. The example pdf-parse-content illustrates it use. - * Added QPDF_Keyword and QPDF_InlineImage types along with + * Add QPDF_Keyword and QPDF_InlineImage types along with appropriate wrapper methods in QPDFObjectHandle. These new object types are to facilitate content stream parsing. -- cgit v1.2.3-54-g00ecf