diff HuffmanString.hpp @ 56:76846cb92b5c

Clean up at exit. Add getSet function.
author Tom Fredrik Blenning Klaussen <bfg@blenning.no>
date Thu, 13 Sep 2012 23:49:18 +0200
parents f711ddb56ae7
children
line wrap: on
line diff
--- a/HuffmanString.hpp	Thu Sep 13 23:47:29 2012 +0200
+++ b/HuffmanString.hpp	Thu Sep 13 23:49:18 2012 +0200
@@ -8,11 +8,15 @@
 class HuffmanString {
   static HuffmanSet* set;
   HuffmanSet::key_t key;
+
+  static void atExit();
+
 public:
 
   HuffmanString(const QString& str = QString(), HuffmanSet* set = NULL);
   QString toString() const;
   operator QString() const;
+  static HuffmanSet& getSet();
   bool operator<(const HuffmanString& rhs) const;
   bool operator==(const HuffmanString& rhs) const;
 };