new routine: dumpEntries()
authorkramm <kramm>
Thu, 1 Nov 2001 00:50:20 +0000 (00:50 +0000)
committerkramm <kramm>
Thu, 1 Nov 2001 00:50:20 +0000 (00:50 +0000)
pdf2swf/xpdf/Dict.cc
pdf2swf/xpdf/Dict.h

index c9f4fec..94ca386 100644 (file)
@@ -86,3 +86,20 @@ Object *Dict::getVal(int i, Object *obj) {
 Object *Dict::getValNF(int i, Object *obj) {
   return entries[i].val.copy(obj);
 }
+
+void Dict::dumpEntries()
+{
+    int t;
+    for(t=0;t<size;t++)
+    {
+       printf("key: %s\n", entries[t].key);
+       fflush(stdout);
+       {
+          printf(" value:\n");
+          entries[t].val.print();
+       }
+       fflush(stdout);
+       printf("---\n");
+       fflush(stdout);
+    }
+}
index cfc64d3..e392645 100644 (file)
@@ -64,6 +64,10 @@ private:
   int ref;                     // reference count
 
   DictEntry *find(char *key);
+
+public:
+  void dumpEntries();
+
 };
 
 #endif